ShellCodeX
Tools • Events • News • Insights
SEO Checker
ShellCodeX vulnerability brief
HIGH Received

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.

Published 22 Aug 2026, 13:16 UTC Last modified 22 Aug 2026, 13:16 UTC
01

Attack profile

The conditions required to exploit this vulnerability and its potential impact.

Attack vector Local
Attack complexity Low
Privileges required None
User interaction Passive
Scope Not assessed
Confidentiality Not assessed
Integrity Not assessed
Availability Not assessed
02

Affected products

Product applicability statements supplied with the NVD record.

NVD has not published structured affected-product data for this record.
03

Weakness classification

CWE categories help security teams group the underlying software weakness.

04

Source references

External advisories, patches and technical reports attached to this CVE record.