Bug 2506113 (CVE-2026-16566) - CVE-2026-16566 community.general: community.general: jenkins_credential module returns generated API token in plaintext output
Summary: CVE-2026-16566 community.general: community.general: jenkins_credential modul...
Keywords:
Status: NEW
Alias: CVE-2026-16566
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-22 13:10 UTC by OSIDB Bzimport
Modified: 2026-07-22 13:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-22 13:10:34 UTC
A flaw was found in the community.general Ansible collection's
jenkins_credential module (plugins/modules/jenkins_credential.py).
When credential_type is set to "token", the module calls the Jenkins
API to generate a new API token. The response containing the token
value is stored at line 793: result["token"] = response_data["data"]
["tokenValue"], and the full result dict is returned via
module.exit_json(**result) at line 794. While the module's argument
specification correctly declares jenkins_password with no_log=True
(line 527), preventing the input password from appearing in Ansible
output, the generated token in the return value has no output
suppression. This causes the token to be exposed through: (1)
standard Ansible task output visible in terminal and logs; (2)
AWX/Tower/AAP Controller job logs stored in the database; (3)
Ansible callback plugins (log_plays, syslog_json, splunk); (4)
CI/CD pipeline build logs; (5) fact caching backends if the result
is registered and cached. The reporter's suggested fix — removing
tokenValue from the result dict and returning only tokenUuid — is
the correct remediation.

  Upstream: https://github.com/ansible-collections/community.general
    Affected version: all versions containing jenkins_credential module
    Fixed version: (pending upstream fix)


Note You need to log in before you can comment on or make changes to this bug.