<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sun, 04 Oct 2026 16:58:19 +0000</lastBuildDate>
    <item>
      <title>BREW-cdxgen-GHSA-qhh4-458h-xwh2 — @cyclonedx/cdxgen: Docker registry auth substring match forwards credentials to a different registry</title>
      <link>https://vulnerability.circl.lu/vuln/brew-cdxgen-ghsa-qhh4-458h-xwh2</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Homebrew: cdxgen&lt;/p&gt;
&lt;p&gt;# Docker registry auth substring match forwards credentials to a different registry&lt;/p&gt;
&lt;p&gt;## Repository&lt;/p&gt;
&lt;p&gt;`cdxgen/cdxgen`&lt;/p&gt;
&lt;p&gt;## Affected product/package&lt;/p&gt;
&lt;p&gt;- 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&lt;/p&gt;
&lt;p&gt;The Single Executable Applications (SEA) binaries and container images are also affected.&lt;/p&gt;
&lt;p&gt;## Weakness&lt;/p&gt;
&lt;p&gt;CWE-522 / CWE-346.&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;When cdxgen scans or pulls container images through the Docker daemon API, it builds an `X-Registry-Auth` header from Docker credentials in `DOCKER_CONFIG/config.json`. The credential selection logic matches configured registry keys with substring checks:&lt;/p&gt;
&lt;p&gt;```js
if (forRegistry &amp;amp;&amp;amp; !serverAddress.includes(forRegistry)) {
  continue;
}
```&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;```js
&amp;#34;private-registry.example.com&amp;#34;.includes(&amp;#34;registry.example.com&amp;#34;) === true
```&lt;/p&gt;
&lt;p&gt;The selected credentials are then serialized into `X-Registry-Auth` for the Docker API pull request targeting the requested registry.&lt;/p&gt;
&lt;p&gt;## Reproduction&lt;/p&gt;
&lt;p&gt;Use the attached/local proof:&lt;/p&gt;
&lt;p&gt;```sh
node submissions/github-gsa/cdxgen-docker-registry-auth-substring-forwarding/evidence/cdxgen_docker_registry_auth_substring_probe.mjs
```&lt;/p&gt;
&lt;p&gt;The proof is fully local. It creates a temporary Docker con…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Homebrew: cdxgen&lt;/p&gt;
&lt;p&gt;# Docker registry auth substring match forwards credentials to a different registry&lt;/p&gt;
&lt;p&gt;## Repository&lt;/p&gt;
&lt;p&gt;`cdxgen/cdxgen`&lt;/p&gt;
&lt;p&gt;## Affected product/package&lt;/p&gt;
&lt;p&gt;- 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&lt;/p&gt;
&lt;p&gt;The Single Executable Applications (SEA) binaries and container images are also affected.&lt;/p&gt;
&lt;p&gt;## Weakness&lt;/p&gt;
&lt;p&gt;CWE-522 / CWE-346.&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;When cdxgen scans or pulls container images through the Docker daemon API, it builds an `X-Registry-Auth` header from Docker credentials in `DOCKER_CONFIG/config.json`. The credential selection logic matches configured registry keys with substring checks:&lt;/p&gt;
&lt;p&gt;```js
if (forRegistry &amp;amp;&amp;amp; !serverAddress.includes(forRegistry)) {
  continue;
}
```&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;```js
&amp;#34;private-registry.example.com&amp;#34;.includes(&amp;#34;registry.example.com&amp;#34;) === true
```&lt;/p&gt;
&lt;p&gt;The selected credentials are then serialized into `X-Registry-Auth` for the Docker API pull request targeting the requested registry.&lt;/p&gt;
&lt;p&gt;## Reproduction&lt;/p&gt;
&lt;p&gt;Use the attached/local proof:&lt;/p&gt;
&lt;p&gt;```sh
node submissions/github-gsa/cdxgen-docker-registry-auth-substring-forwarding/evidence/cdxgen_docker_registry_auth_substring_probe.mjs
```&lt;/p&gt;
&lt;p&gt;The proof is fully local. It creates a temporary Docker con…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/brew-cdxgen-ghsa-qhh4-458h-xwh2</guid>
    </item>
  </channel>
</rss>
