{"id":"CVE-2026-57998","published":"2026-08-22T12:26:30Z","modified":"2026-08-29T11:47:30Z","title":"better-npm-audit OS Command Injection via registry flag","vendor":"jeemok","product":"better-npm-audit","tier":"tail","description":{"text":"better-npm-audit through 3.11.0, and the 4.0.0-rc.2 prerelease, builds its npm audit command by interpolating the user-supplied --registry option into a command string in src/handlers/handleInput.ts without validation or quoting, then passes that string to child_process.exec() in index.ts, which spawns a shell. A registry value containing shell metacharacters such as a semicolon, pipe, or command substitution executes arbitrary operating system commands with the privileges of the process running the audit.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.06573,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/jeemok/better-npm-audit/issues/119","tags":["issue-tracking"]},{"url":"https://github.com/jeemok/better-npm-audit","tags":["product"]},{"url":"https://github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/src/handlers/handleInput.ts#L30-L37","tags":["technical-description"]},{"url":"https://github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/index.ts#L34","tags":["technical-description"]},{"url":"https://github.com/jeemok/better-npm-audit/pull/120","tags":["issue-tracking","patch"]},{"url":"https://www.vulncheck.com/advisories/better-npm-audit-os-command-injection-via-registry-flag","tags":["third-party-advisory"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.31},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"jeemok","affectedVersions":[{"vendor":"jeemok","product":"better-npm-audit","versions":["<= 3.11.0","4.0.0-rc.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-25T16:42:59.046764Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-64261","exploited":false,"provenance":"source"}}