CVE Index中文
L3 · Shartedcdxgen · CI · SBOMcdxgen-project-config

cdxgen repository configuration can execute commands despite scan safeguards

A malicious checkout can make cdxgen execute commands despite --no-install-deps and secure mode. Three companion advisories cover parser stalls, output symlinks and Git redirects. @cyclonedx/cdxgen 12.9.1 is fixed; the @cdxgen/cdxgen 13.x fix is planned for 13.7.0, with no patched release yet listed.

Disclosed
Nov 6, 2026
Public disclosure date
Severity
Sharted
4 CVEs tracked here
Splash zone
Developers and CI scanning attacker-controlled checkouts with cdxgen; config execution requires running inside the checkout.
cdxgen · CI · SBOM
In the wild
Unknown
Public PoCs are available; no confirmed exploitation or victim count was reported.

What happened

The November 6 batch concerns the scanner’s trust boundary when it processes an untrusted repository. It is not a claim that the published cdxgen package was malicious. The maintainer rates command execution and parser denial of service moderate, and the symlink and redirect issues low. This event is rated L3 because public demonstrations show repository-controlled code executing in a CI/developer security tool despite its documented safeguards. No actual victim total or confirmed exploitation is established.

Configuration is loaded from cdxgen’s current working directory. The advisory describes four execution routes: a .NET evidence helper accepting dosaiCommand, Scala evidence accepting scalasem-command from 13.4.0 onward, dynamic tracing accepting traceCmd and sandbox changes, and yargs 18 loading extends inside the scanner process. The last route affects versions using yargs 18 from 12.0.0. Running from a separate trusted directory avoids loading the target checkout’s configuration; it does not make every other scanning operation safe.

The other three issues have distinct prerequisites. CrewAI parsing can block the Node.js event loop. A final-component output symlink can corrupt another file the scanner user can write, including outside Node permission-model paths, but the written content is the generated BOM. Git redirects require a redirect-capable allowlisted host; unauthenticated server clients can choose the initial repository URL. This can enable internal-host probing, internal-repository SBOM disclosure or resource exhaustion; outside secure mode, configured Git HTTP headers may also reach the redirect target.

All four advisories identify @cyclonedx/cdxgen 12.9.1 as fixed. They list no patched @cdxgen/cdxgen 13.x version and say its fixes will ship in 13.7.0. The 13.7.0 release URL returned 404 during verification. Do not treat the planned release or a merged patch as an available fixed artifact. No version checker is provided because the two package names have different affected ranges and 13.x remediation is pending.

The fix restricts project-config keys and resolves allowed paths through symlinks, replaces unsafe output symlinks, uses bounded parsing and disables Git redirects when a host allowlist or secure mode applies. The earlier bundled-Node Brotli issue remains tracked in the Node.js October incident; it is a separate flaw and fixing it alone does not address this batch.

What’s in the bowl

GHSA-phj7-7j69-xmfh

Repository configuration command execution

@cyclonedx/cdxgen >=12.0.0,<12.9.1 and @cdxgen/cdxgen >=13.0.0 load unsafe project configuration from the working directory. Repository control can become code execution as the scanning user.

GHSA-4v76-rxfx-x42x

CrewAI parser denial of service

@cyclonedx/cdxgen >=12.3.1,<12.9.1 and @cdxgen/cdxgen >=13.0.0 synchronously parse crafted CrewAI agents.py/tasks.py with quadratic regular expressions. CLI or ai-skill/ai server scans can stall.

GHSA-jgqw-xmhg-9rfm

Output symlink file corruption

@cyclonedx/cdxgen >=8.1.6,<12.9.1 and @cdxgen/cdxgen >=13.0.0 follow an output-path symlink, overwriting a predictable writable target with generated BOM content, not arbitrary attacker-supplied bytes.

GHSA-7pxf-2399-4955

Git redirect host-allowlist bypass

@cyclonedx/cdxgen >=11.2.5,<12.9.1 and @cdxgen/cdxgen >=13.0.0 allow Git HTTP redirects past host checks when an allowlisted host can redirect to an attacker-chosen destination.

Fixed versions

ProductSafe fromNote
@cyclonedx/cdxgen 12.x12.9.1Released fix for all four advisories
@cdxgen/cdxgen 13.xNo fix13.7.0 planned; advisories list no patched release

Crime-scene timeline

  1. Nov 6, 2026

    Maintainer publishes four advisories and public demonstrations

    The shared patch batch fixes 12.x in 12.9.1; 13.x source fixes are identified in PR 4759, with release 13.7.0 still planned.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.