{
  "id": "CVE-2026-57998",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57998",
  "published_at": "2026-08-22T12:26:30.536Z",
  "title": "better-npm-audit OS Command Injection via registry flag",
  "vendor": "jeemok",
  "product": "better-npm-audit",
  "cvss": {
    "score": 8.5,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 8.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "jeemok",
        "product": "better-npm-audit",
        "ranges": [
          "\u003c= 3.11.0",
          "4.0.0-rc.2"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/jeemok/better-npm-audit/pull/120"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
