CVE-2026-57998: Command Injection Vulnerability in better-npm-audit
Article Content
- •CVE-2026-57998 affects better-npm-audit versions up to 3.11.0 and 4.0.0-rc.2.
- •The vulnerability allows command injection through the --registry option, enabling arbitrary command execution.
- •A patch is available, and users are urged to update and validate inputs to mitigate risks.
A command injection vulnerability, CVE-2026-57998, has been identified in better-npm-audit versions up to 3.11.0 and 4.0.0-rc.2. The flaw arises from improper handling of the user-supplied --registry option, allowing attackers to inject arbitrary OS commands via shell metacharacters. This vulnerability can be exploited by local users to execute commands with the privileges of the process running the audit, potentially leading to unauthorized access to sensitive files or system modification. Currently, there is no evidence of public proof-of-concept exploits or confirmed exploitation. A patch is available, and users are advised to update to the latest versions and validate all user inputs. The CVSS base score assigned to this vulnerability is 7.8, indicating a high severity level. The National Vulnerability Database has included this CVE in its dataset as of August 22, 2026.
Ask AI about this cluster
Answers cite the sources they use
More articles in this cluster (5)
Following this threat?
Track CVE-2026-57998 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Continue Reading
OS Command Injection Flaw in SiteGuard WAF Exploited EG Secure Solutions disclosed that attackers are exploiting an OS command injection vulnerability in SiteGuard Server Edition, tracked as CVE-2026-106931. This flaw allows attackers to execute commands with root or SYSTEM privileges, affecting versions 2.20 and later, with the statistics feature enabled by default.…