Loading HuntDB...

GHSA-vwq9-cmqr-3c8c

GitHub Security Advisory

Insertion of Sensitive Information into Log File in Jenkins Configuration as Code Plugin

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

Configuration as Code Plugin logs the changes it applies to the Jenkins system log. Secrets such as passwords should be masked (i.e. replaced with asterisks) in that log to prevent accidental disclosure.

Between Configuration as Code Plugin 0.8-alpha and 1.0, log messages contained values if the values were specified using properties in the YAML file (SECURITY-929).

Since Configuration as Code Plugin 1.1, log messages in Configuration as Code Plugin instead mask values of type `Secret`, which is used in Jenkins to store the values encrypted on disk. This did not work in many instances, as plugins could use the `Secret` type to store credentials encrypted on disk while not having the Secret type appear in their Java API.

Configuration as Code Plugin now inspects the type and looks for a field, getter, or constructor argument corresponding to the property, making the secret detection much more robust for the purpose of log message masking. As a workaround, administrators can configure the logging level of the logger `io.jenkins.plugins.casc.Attribute` to a level that does not include `INFO` messages. See the logging documentation for details.

Affected Packages

Maven io.jenkins:configuration-as-code
Affected versions: 0 (fixed in 1.25)

Related CVEs

Key Information

GHSA ID
GHSA-vwq9-cmqr-3c8c
Published
May 24, 2022 4:51 PM
Last Modified
October 26, 2023 4:44 PM
CVSS Score
5.0 /10
Primary Ecosystem
Maven
Primary Package
io.jenkins:configuration-as-code
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 2, 2025 6:26 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.