Skip to content
CVE-2026-57998: Command Injection Vulnerability in better-npm-audit

CVE-2026-57998: Command Injection Vulnerability in better-npm-audit

First seen 22 Aug 2026, 18:50 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •August 23, 2026 at 16:16 UTC
  • •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.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Updated 58d ago How this analysis works

Timeline

2026-08-22
CVE-2026-57998 published
The vulnerability in better-npm-audit was officially disclosed, detailing the command injection flaw.
NVD
2026-08-22
Patch released
A patch for better-npm-audit has been made available to address the command injection vulnerability.
Feedly

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