@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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55849.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.1.0"
},
{
"fixed": "5.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "9f646253f4263d8644dadb86e5597fad996f688f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v5.0.0",
"range": [
{
"fixed": "756bde16c2aab0618114083301bc8b1b3f344208"
}
],
"source": "REFERENCES_TAG"
}
]
}