CVE-2026-16566

community.general: community.general: jenkins_credential module returns generated API token in plaintext output

Published n/a CVSS 3.1 · 6.1 Medium EPSS n/a KEV · Not listed
Description
A flaw was found in the community.general Ansible collection's
jenkins_credential module. When creating a Jenkins API token
(credential_type: token), the module correctly protects the input
password with no_log=True in the argument specification, but places
the generated API token returned by the Jenkins API directly into
the Ansible task result dictionary without output suppression. The
token is emitted in plaintext via exit_json(), causing it to appear
in Ansible task output, AWX/Tower/AAP Controller job logs, callback
plugin output, CI/CD pipeline logs, and fact caching backends. An
attacker with access to any of these output channels can obtain the
Jenkins API token and gain the same privileges as the user who
created it.

Analysis

AI-generated

Technical impact

The community.general Ansible collection’s jenkins_credential module, when generating a Jenkins API token, fails to suppress the token in the task result dictionary. As a result, the secret appears in plaintext within Ansible’s normal output, AWX/Tower/AAP Controller logs, callback plugins, CI/CD pipeline logs, and fact caching backends. An attacker who can read any of these channels can capture the token and authenticate to Jenkins with the same privileges as the user who created the token, enabling unauthorized actions or further exploitation within the Jenkins environment.

Affected Systems

All installations of the community.general collection that include the jenkins_credential module are susceptible. The exact collection versions are not specified in the advisory, so all released versions remain potentially affected until a fix is distributed.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity. The EPSS score is not available, so the likelihood of exploitation cannot be quantified precisely, but the vulnerability is listed as not in CISA KEV, indicating no widespread, actively exploited instances are reported. Exploitation requires access to the Ansible output channels; if an attacker can view job logs or controller output, they can retrieve the token. The advisory does not provide a workaround, so interim mitigation relies on restricting log access or altering the module to suppress secrets.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched version of the community.general collection that removes the token from task output when creating a Jenkins API token
  • If a patch is not yet released, configure Ansible to run the jenkins_credential task with no_log set at the task level or use a custom callback plugin that masks secrets
  • Restrict access to AWX/Tower/AAP Controller logs, CI/CD pipeline logs, and any fact caching backends so that only authorized users can view them

Generated by OpenCVE AI on August 4, 2026 at 19:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
CWE-549
Type Values Removed Values Added
First Time appeared Jenkins
Jenkins credentials
Vendors & Products Jenkins
Jenkins credentials
Type Values Removed Values Added
Weaknesses CWE-200
CWE-549
Type Values Removed Values Added
Description A flaw was found in the community.general Ansible collection's jenkins_credential module. When creating a Jenkins API token (credential_type: token), the module correctly protects the input password with no_log=True in the argument specification, but places the generated API token returned by the Jenkins API directly into the Ansible task result dictionary without output suppression. The token is emitted in plaintext via exit_json(), causing it to appear in Ansible task output, AWX/Tower/AAP Controller job logs, callback plugin output, CI/CD pipeline logs, and fact caching backends. An attacker with access to any of these output channels can obtain the Jenkins API token and gain the same privileges as the user who created it.
Title community.general: community.general: jenkins_credential module returns generated API token in plaintext output
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}

threat_severity

Moderate

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources