CVE-2026-57998: jeemok better-npm-audit · OS Command Injection
Affects jeemok better-npm-auditSource CVE Database V5
Not known to be exploited · CVSS 8.5 High.
Data as of 21 Nov 2026, 17:35 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| jeemokbetter-npm-audit | Affected
| Fixed in– |
npmbetter-npm-auditpkg:npm/better-npm-auditOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, users should avoid passing untrusted input to the --registry option or avoid using affected versions. Consider running the tool with minimal privileges to reduce impact.
Description
CVE-2026-57998 is an OS command injection vulnerability in the jeemok better-npm-audit tool. Versions up to 3.11.0 and the 4.0.0-rc.2 prerelease build a shell command by directly interpolating user input from the --registry option without validation or quoting. This allows an attacker to execute arbitrary OS commands with the privileges of the process running the audit.
References
- github.com/jeemok/better-npm-audit/issues/119 (opens in a new tab)
- github.com/jeemok/better-npm-audit (opens in a new tab)
- github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/src/handlers/handleInput.ts (opens in a new tab)
- github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/index.ts (opens in a new tab)
- github.com/jeemok/better-npm-audit/pull/120 (opens in a new tab)
- vulncheck.com/advisories/better-npm-audit-os-command-injection-via-registry-flag (opens in a new tab)