Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-57998— better-npm-audit OS Command Injection via registry flag

Quick assessment

Affected
jeemok better-npm-audit
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

better-npm-audit 3.11.0 及以下版本,以及 4.0.0-rc.2 预发布版本中,存在命令注入漏洞。该漏洞源于程序在 文件中构建 npm audit 命令时,直接将用户提供的 选项值插值到命令字符串中,未进行任何验证或引号包裹。随后,该命令字符串通过 中的 执行,从而启动一个 shell。若 registry 值中包含 shell 元字符(如分号、管道符或命令替换符),将导致攻击者能够以运行审计工具的进程权限执行任意操作系统命令。

CVSS 7.8 · High EPSS 0.21% · P12

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 2

VendorProduct Version RangeStatus
jeemok better-npm-audit ≤ 3.11.0 affected
4.0.0-rc.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-57998

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
better-npm-audit OS Command Injection via registry flag
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
jeemok better-npm-audit 0 ~ 3.11.0 -

II. Public POCs for CVE-2026-57998

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6389 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-57998

登录查看更多情报信息。

Patches & Fixes for CVE-2026-57998 (1)

Vendor Advisories for CVE-2026-57998 (1)

Other References for CVE-2026-57998 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-57998

No comments yet


Leave a comment