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)
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.
Affected products
- Jeemok Better-npm-audit — versions 4.0.0-rc.2
Weakness classification (CWE)
References
- disclosure@vulncheck.com (issue-tracking)
- disclosure@vulncheck.com (product)
- disclosure@vulncheck.com (technical-description)
- disclosure@vulncheck.com (technical-description)
- disclosure@vulncheck.com (issue-tracking)
- disclosure@vulncheck.com (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.