CVE-2026-57998

Source
https://cve.org/CVERecord?id=CVE-2026-57998
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57998.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57998
Published
2026-08-22T12:26:30.536Z
Modified
2026-08-30T03:47:00.552622876Z
Severity
  • 8.5 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
better-npm-audit OS Command Injection via registry flag
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57998.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.0.0-rc.2"
                },
                {
                    "last_affected": "4.0.0-rc.2"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-78"
    ],
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/jeemok/better-npm-audit

Affected ranges

Type
GIT
Repo
https://github.com/jeemok/better-npm-audit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "3.11.0"
        },
        {
            "fixed": "3.11.0"
        }
    ]
}

Affected versions

3.*
3.8.0
v3.*
v3.0.0
v3.0.1
v3.1.0
v3.1.1
v3.1.2
v3.10.0
v3.2.1
v3.3.0
v3.4.0
v3.5.1
v3.6.0
v3.7.1
v3.7.3
v3.8.3
v3.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57998.json"