GHSA-6PWR-9GQ6-X9VV
Credentials printed to logs and to the dry-run activity summary
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-6PWR-9GQ6-X9VV divulgada · CVSS 5.3 (GitHub) | |
| Remediación | Parche 12.9.2 | @cyclonedx/cdxgen · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
In four situations cdxgen writes secrets to its standard output or standard error at default verbosity. Anyone who can read a CI job log, a saved activity report or a server log, but not the repository or the job's secrets, then sees them. In one case the scanned repository chooses which of cdxgen's environment variables is printed.
Details
- Install failures. After a failed `npm install` (and the yarn, pnpm and rush paths), `createNodejsBom()` in `lib/cli/jsBom.js` prints the package manager's standard error without redaction; `getPipFrozenTree()` and `createUVLock()` in `lib/ecosystems/pythonutils.js` do the same for pip and uv. Tokens in dependency URL query strings, such as pre-signed storage URLs or GitLab `private_token=` values, and for pip values that pip expanded from the operator's environment, end up in the log. This needs installs on (the default outside secure mode) and an install failure whose message names the URL.
- Dry-run activity summary. `safeSpawnSync()` records the joined command line as the activity target without sanitizing it (`buildCommandActivityDescriptor()` in `lib/core/fs.js`), although `docs/PERMISSIONS.md` says secret-bearing values are not shown there. With `--dry-run`, a `MAVEN_CENTRAL_MIRROR` URL that carries a user name and password is printed in the `clj` row for `deps.edn` projects (`clojureMirrorArgs()` in `lib/inventory/mavenCentralMirror.js`), and with registry lookups on, network rows show passwords from `MAVEN_CENTRAL_MIRROR`, `MAVEN_CENTRAL_URL` or `NPM_URL`.
- Environment variables chosen by the repository. A `.mvn/maven.config` can name a settings file whose `<localRepository>` contains `${env.NAME}`. `expandMavenProperties()` in `lib/inventory/jvmLocalRepos.js` substitutes the real value of any variable, and the probed path is printed in the dry-run summary. This needs `--dry-run` with `--introspect` and deep analysis, `MAVEN_CACHE_DIR` unset and secure mode off.
- YAML warnings. The modules that use the `yaml` package do not set its `logLevel`, so warnings about unknown tags are written through `process.emitWarning()`, which bypasses cdxgen's console handling. Each warning quotes up to 80 characters of the tagged line and the line above it, for example a CloudFormation `!Sub` string with a password, or a token in agent front matter that cdxgen keeps out of the BOM. The CI file parsers that run with formulation reach this, as do the AI inventory readers.
Impact
Disclosure of tokens and passwords to readers of logs and activity reports, including the logs of pull-request pipelines and hosted scanners. The BOM itself is not affected by these paths.
Patches
Fixed in `@cdxgen/cdxgen` 13.8.0. Versions 13.0.0 through 13.7.0 of `@cdxgen/cdxgen` are affected. The 12.x line, published as `@cyclonedx/cdxgen`, is also affected by some of the issues above from 10.5.2 through 12.9.1, and no 12.x release contains the fix. Users of 12.x should move to `@cdxgen/cdxgen` 13.8.0 or apply the workarounds below. File paths in this advisory refer to the 13.x source tree; in 12.x most of the same functions are under `lib/helpers/` or in `lib/cli/index.js`.
First affected release of each issue:
- install failure output: 10.5.2
- dry-run activity summary: 13.6.0 (not in 12.x)
- environment variables chosen by the repository: 13.4.0 (not in 12.x)
- YAML warnings: 12.2.0
Workarounds
- Keep credentials out of registry and mirror URLs; configure them through the package manager's own credential settings.
- Treat cdxgen output in CI as sensitive and restrict who can read it.
- Set `NODE_NO_WARNINGS=1` for the cdxgen process to suppress the YAML warnings.
- Do not combine `--dry-run` with credentialed mirror URLs, or with `--introspect` and deep analysis on untrusted repositories.
Credit
These issues were found by Anthropic's OSS Scanner (scan cdxgen-20261108-009) and reported as ANT-2026-XWS361CO, ANT-2026-4QYG8XQP, ANT-2026-KDJIGVFC, ANT-2026-CJHXKAG4.
References
- https://github.com/cdxgen/cdxgen/blob/master/SECURITY.md
- https://github.com/cdxgen/cdxgen/blob/master/docs/THREAT_MODEL.md
- Fixed in: https://github.com/cdxgen/cdxgen/pull/4787
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@cyclonedx/cdxgen |
Corregida | 12.9.2 | 0 d | 12.9.2 no afectada |
12.9.213.8.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/cdxgen/cdxgen/security/advisories/GHSA-6pwr-9gq6-x9vvLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
