CycloneDX cyclonedx-node-npm
@cyclonedx/cyclonedx-npm: Shell Injection via Unsanitized `--workspace` Argument
@cyclonedx/cyclonedx-npm creates CycloneDX Software Bill of Materials from npm projects. From 2.1.0 before 5.0.0, the CLI passes user-supplied --workspace values to a subshell without proper sanitization when npm_execpath is unset or empty, allowing arbitrary OS command execution with the privileges of the invoking user. This issue is fixed in version 5.0.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.5high · scored by CNA · CWE-78
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
CycloneDX cyclonedx-node-npm
- >= 2.1.0, < 5.0.0
Fixed in 5.0.0
Mitigation
Upgrade cyclonedx-node-npm to 5.0.0 or later.
References
- Vendor advisory github.com/CycloneDX/cyclonedx-node-npm/securi…
- Patch github.com/CycloneDX/cyclonedx-node-npm/pull/1…
- Patch github.com/CycloneDX/cyclonedx-node-npm/commit…
1 more
- Release notes github.com/CycloneDX/cyclonedx-node-npm/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.