RCE in Jeemok Better-Npm-Audit
CVE-2026-57998
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (10.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 10th percentile — 10.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.002 · change: +0.001
Affected products
- Jeemok Better-Npm-Audit — versions 4.0.0-rc.2
Weakness classification (CWE)
References
- github.com/jeemok/better-npm-audit/issues/119 (issue-tracking)
- github.com/jeemok/better-npm-audit (product)
- github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d054… (technical-description)
- github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d054… (technical-description)
- github.com/jeemok/better-npm-audit/pull/120 (issue-tracking, patch)
- www.vulncheck.com/advisories/better-npm-audit-os-command-injection-via-registry… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-57998?
- CVE-2026-57998 is a high-severity vulnerability in Jeemok Better-Npm-Audit, classified under OS Command Injection. CVSS score: 7.8/10. Published 2026-08-22.
- How severe is CVE-2026-57998?
- High severity. CVSS v3 base score is 7.8 out of 10.