@cyclonedx/cdxgen: Docker registry auth substring match forwards credentials to a different registry
What to do
Vendor fix available. Upgrade each affected package to the fixed version on its release line (@cyclonedx/cdxgen 12.3.3), redeploy, then verify what is actually installed.
This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.
Affected packages
- Affected
- >= 9.9.5, < 12.3.3
- Fixed in
- 12.3.3
Sources
- Open Source Vulnerabilities (OSV.dev), including the GitHub Advisory Database
OSV record GHSA-qhh4-458h-xwh2 lists affected ranges: npm @cyclonedx/cdxgen >=9.9.5 <12.3.3 (fixed)
VerifiedObserved Structured OSV record; GitHub-reviewed advisory.
- GitHub Advisory Database and maintainer security advisories on GitHub
GitHub-reviewed advisory GHSA-qhh4-458h-xwh2 lists affected ranges: npm @cyclonedx/cdxgen >=9.9.5 <12.3.3
VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.
Severity and exploitation
- Exploitation
- No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
- CVSS 4.0
- 6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N · score source
- EPSS
- No dated EPSS signal available.
Source description
As published by the source; long descriptions are shortened.
Docker registry auth substring match forwards credentials to a different registry Repository cdxgen/cdxgen Affected product/package - Ecosystem: npm - Package: @cyclonedx/cdxgen - Reviewed tree version: 12.3.3 - Reviewed commit: b1e179869fd7c6032c3d483c3f7bd4d7154ec22b - Affected file: lib/managers/docker.js - Affected from: v9.9.5 The Single Executable Applications (SEA) binaries and container images are also affected. Weakness CWE-522 / CWE-346. Summary When cdxgen scans or pulls container images through the Docker daemon API, it builds an X-Registry-Auth header from Docker credentials in DOCKERCONFIG/config.json. The credential selection logic matches configured registry keys with substring checks: This is not an origin-safe registry comparison. For example, credentials configured for private-registry.example.com are selected for a requested image under registry.example.com, because: The selected credentials are then serialized into X-Registry-Auth for the Docker API pull request…
Dates and revisions
- Published by the source
- Last modified by the source
- Source last checked
- Revision 3 · amended ·
Amended from ghsa record GHSA-qhh4-458h-xwh2
- Revision 2 · amended ·
Reviewed OSV alias/range/CVSS4 correction; package source scopes and original publication preserved. No customer finding resolved.
- Revision 1 · created ·
Published from osv record GHSA-qhh4-458h-xwh2
Agent brief
Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.
# Patch Next advisory brief: GHSA-qhh4-458h-xwh2 Advisory: @cyclonedx/cdxgen: Docker registry auth substring match forwards credentials to a different registry IDs: GHSA-qhh4-458h-xwh2 Record: https://patchnext.com/advisories/ghsa-qhh4-458h-xwh2 (revision 3, source checked 26 Oct 2026, 12:51 UTC) Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected. Severity: Medium (CVSS 6.9) Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV. Vendor response: Vendor fix available; fixed versions by package: @cyclonedx/cdxgen 12.3.3. A vendor fix does not mean a deployment is fixed. ## Affected components - npm @cyclonedx/cdxgen: affected >= 9.9.5, < 12.3.3; fixed in 12.3.3 ## Suggested inspection (read-only) - `npm ls @cyclonedx/cdxgen --all`: lists every installed copy and version, including transitive ones. Run in the project root after `npm ci`. ## Supported action Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version. ## Required regression checks - Run the test suite and a production build. - Exercise the features that depend on @cyclonedx/cdxgen. - Repeat the inspection and confirm that only fixed versions remain installed. ## Rollback considerations - Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward. ## Unresolved questions - Which deployments run an affected version? - Exploitation status can change. Check again before lowering the priority. - Mark the work resolved only after the fixed version is verified in production. ## Sources - Verified: https://osv.dev/vulnerability/GHSA-qhh4-458h-xwh2 (OSV record GHSA-qhh4-458h-xwh2 lists affected ranges: npm @cyclonedx/cdxgen >=9.9.5 <12.3.3 (fixed)) - Verified: https://github.com/advisories/GHSA-qhh4-458h-xwh2 (GitHub-reviewed advisory GHSA-qhh4-458h-xwh2 lists affected ranges: npm @cyclonedx/cdxgen >=9.9.5 <12.3.3) Commands are suggestions: review each one before running it.
Loading voting…