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.
Published: n/a
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 04 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Tue, 04 Aug 2026 09:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Sun, 02 Aug 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Thu, 30 Jul 2026 01:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-549

Mon, 27 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Jenkins
Jenkins credentials
Vendors & Products Jenkins
Jenkins credentials

Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200
CWE-549

Thu, 23 Jul 2026 12:15:00 +0000

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


Subscriptions

Jenkins Credentials
cve-icon MITRE

No data.

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-22T00:00:00Z

Links: CVE-2026-16566 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T19:45:03Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor