Vulnerability

CVE-2026-57998

highCVSS 4.0 8.5Published 22 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /jeemok/better-npm-audit
  • github.com /jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17…
  • github.com /jeemok/better-npm-audit/blob/fd99a0f41ff4342b8a0a6fdbe5a17…
  • github.com /jeemok/better-npm-audit/issues/119
  • github.com /jeemok/better-npm-audit/pull/120
  • www.vulncheck.com /advisories/better-npm-audit-os-command-injection-via-regis…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning