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.
CVE-2026-57998
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-08-22. the CNA's CVSS baseline 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(high)
- EG Risk
- 51(Track*)EG Risk 51/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 0%
- EPSS %ILE
- 4%
- KEV
- Not listed
Published
August 22, 2026
Last Modified
August 29, 2026
Advisory Details (6)
Auto-updated Aug 22, 2026better-npm-audit OS Command Injection via registry flag | Advisories | VulnCheck
https://www.vulncheck.com/advisories/better-npm-audit-os-command-injection-via-registry-flagImplement registry URL validation in handleInput
Upstream fix in progress (PR #120 · jeemok/better-npm-audit, state=open)
https://github.com/jeemok/better-npm-audit/pull/120better-npm-audit/index.ts at fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544 · jeemok/better-npm-audit · GitHub
https://github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/index.ts#L34better-npm-audit/src/handlers/handleInput.ts at fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544 · jeemok/better-npm-audit · GitHub
https://github.com/jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17261de3d0544/src/handlers/handleInput.ts#L30-L37GitHub - jeemok/better-npm-audit: The goal of this project is to provide additional features on top of the existing npm audit options · GitHub
https://github.com/jeemok/better-npm-audit[CRITICAL] Remote Code Execution via Command Injection in --registry Flag · Issue #119 · jeemok/better-npm-audit · GitHub
https://github.com/jeemok/better-npm-audit/issues/119Vendor Advisories for CVE-2026-57998(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 30× in last 7d / 35× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-29 23:14 UTCGHSA enrichment
- 2026-08-29 12:07 UTCEG score recompute
- 2026-08-29 12:06 UTCGHSA enrichment
- 2026-08-29 01:01 UTCEG score recompute
- 2026-08-29 01:01 UTCGHSA enrichment
- 2026-08-28 21:42 UTCEPSS rescore
- 2026-08-28 11:55 UTCGHSA enrichment
- 2026-08-28 00:50 UTCEG score recompute
- 2026-08-28 00:50 UTCGHSA enrichment
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-27 13:46 UTCGHSA enrichment
- 2026-08-27 02:41 UTCGHSA enrichment
- 2026-08-26 15:37 UTCEG score recompute
- 2026-08-26 15:36 UTCGHSA enrichment
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-26 04:29 UTCEG score recompute
- 2026-08-26 04:29 UTCGHSA enrichment
- 2026-08-25 17:25 UTCEG score recompute
- 2026-08-25 17:25 UTCGHSA enrichment
- 2026-08-25 17:01 UTCEG score recompute
- 2026-08-25 17:00 UTCGHSA enrichment
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 07:49 UTCGHSA enrichment
- 2026-08-24 20:45 UTCEG score recompute
Show 10 moreShow fewer
- 2026-08-24 20:45 UTCGHSA enrichment
- 2026-08-24 09:41 UTCEG score recompute
- 2026-08-24 09:41 UTCGHSA enrichment
- 2026-08-23 22:36 UTCGHSA enrichment
- 2026-08-23 11:30 UTCGHSA enrichment
- 2026-08-23 00:26 UTCEG score recompute
- 2026-08-23 00:26 UTCGHSA enrichment
- 2026-08-22 13:21 UTCEG score recompute
- 2026-08-22 12:46 UTCEG score recompute
- 2026-08-22 12:45 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-78
- CVE-2009-20011EG 10.0CRITICAL
- CVE-2011-10017EG 10.0CRITICAL
- CVE-2012-1166EG 10.0EPSS p91HIGH
- CVE-2012-2976EG 10.0EPSS p92HIGH
- CVE-2012-2953EG 10.0EPSS p99HIGH
- CVE-2011-4502EG 10.0EPSS p92HIGH
- CVE-2011-2148EG 10.0EPSS p92HIGH
- CVE-2011-0382EG 10.0EPSS p90HIGH
- CVE-2011-0381EG 10.0EPSS p92HIGH
- CVE-2011-0372EG 10.0HIGH
Frequently asked(5)
What is CVE-2026-57998?
When was CVE-2026-57998 disclosed?
Is CVE-2026-57998 actively exploited?
What is the CVSS score of CVE-2026-57998?
How do I remediate CVE-2026-57998?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-57998
Is Your Infrastructure Affected by CVE-2026-57998?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.