<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T14:44:05.087949+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/brew-cdxgen-ghsa-qhh4-458h-xwh2</id>
    <title>BREW-cdxgen-GHSA-qhh4-458h-xwh2 — @cyclonedx/cdxgen: Docker registry auth substring match forwards credentials to a different registry</title>
    <updated>2026-10-04T14:44:05.101814+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Homebrew: cdxgen</p>
<p># Docker registry auth substring match forwards credentials to a different registry</p>
<p>## Repository</p>
<p>`cdxgen/cdxgen`</p>
<p>## Affected product/package</p>
<p>- 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</p>
<p>The Single Executable Applications (SEA) binaries and container images are also affected.</p>
<p>## Weakness</p>
<p>CWE-522 / CWE-346.</p>
<p>## Summary</p>
<p>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:</p>
<p>```js
if (forRegistry &amp;&amp; !serverAddress.includes(forRegistry)) {
  continue;
}
```</p>
<p>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:</p>
<p>```js
"private-registry.example.com".includes("registry.example.com") === true
```</p>
<p>The selected credentials are then serialized into `X-Registry-Auth` for the Docker API pull request targeting the requested registry.</p>
<p>## Reproduction</p>
<p>Use the attached/local proof:</p>
<p>```sh
node submissions/github-gsa/cdxgen-docker-registry-auth-substring-forwarding/evidence/cdxgen_docker_registry_auth_substring_probe.mjs
```</p>
<p>The proof is fully local. It creates a temporary Docker con…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/brew-cdxgen-ghsa-qhh4-458h-xwh2"/>
  </entry>
</feed>
