{"apiVersion":"1.0","identifier":"CVE-2026-57998","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.","publishedAt":"2026-08-22T13:16:38","lastModifiedAt":"2026-08-25T17:17:33","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-57998","cvssScore":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","epssProbability":0.00145,"riskScore":0.79,"affectedProduct":"better-npm-audit","affectedVersions":"<=3.11.0","vulnerabilityType":"Library","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-57998","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-57998","en":"https://www.redsauce.net/en/cves/CVE-2026-57998","fr":"https://www.redsauce.net/fr/cves/CVE-2026-57998","pt":"https://www.redsauce.net/pt/cves/CVE-2026-57998","de":"https://www.redsauce.net/de/cves/CVE-2026-57998","sk":"https://www.redsauce.net/sk/cves/CVE-2026-57998","el":"https://www.redsauce.net/el/cves/CVE-2026-57998"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-57998"}}