AI Science Tracker

nvm can evaluate malicious Node mirror version metadata as shell arithmetic

nvm (Node Version Manager) · AI involvement attributed to Anthropic OSS Scanner (model unspecified)

Finding and attribution

nvm stored an unvalidated version field from a mirror index as an LTS alias. Later alias resolution evaluated the suffix as shell arithmetic; the advisory says bash and zsh can expand command substitutions there, allowing a malicious or compromised mirror to persist a payload that runs on later local nvm commands. A project .nvmrc path also reaches the function but is treated by the maintainers as hardening because using nvm in an untrusted project directory usually precedes running its code. The advisory explicitly distinguishes this version-field issue from earlier download-path evaluation CVEs.

Product: nvm (Node Version Manager). AI system: Anthropic OSS Scanner (model unspecified). Team / organization: Anthropic and nvm maintainers.

CVE identifiers: CVE-2026-121751.

AI and human contribution (source account): The nvm advisory explicitly credits Anthropic OSS Scanner with two scanner IDs for this one underlying issue; they are not counted as two cases. Anthropic’s Oct 8 announcement establishes the scanner’s use of strongest models including Claude Mythos and model-generated reports. The exact model and reason for two IDs are not specified.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: The nvm maintainer published GHSA-7prg-rw9c-82h7 on Nov 4, 2026 and lists CVE-2026-121751. Public AI attribution is in the same item-level advisory; Anthropic’s Oct 8, 2026 scanner announcement is the provenance for the AI program, not the date of this case attribution.

Remediation status: fix documented. nvm 0.41.0 restricts arithmetic to numeric suffixes and drops invalid version rows before aliases are stored.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 4 Nov 2026. AI attribution dated 4 Nov 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: Low · highest recorded score 3.1. Documented technical effects: code execution.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

  • CVE-2026-121751: CVSS 4.0 · 2.1 (Low) · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N · Assessment scenarios: GENERAL. harborist (CNA; CVE Program record) · checked 16 Nov 2026.
  • CVE-2026-121751: CVSS 3.1 · 3.1 (Low) · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N · Assessment scenarios: GENERAL. harborist (CNA; CVE Program record) · checked 16 Nov 2026.

CVE-2026-121751: code execution.
Prerequisites / affected scope: A malicious Node mirror version string is evaluated as shell arithmetic by nvm; only include code execution if source confirms shell-command interpretation..
Exploitation evidence: The cited source does not establish exploitation in the wild.. Impact source · checked 16 Nov 2026.

Documented fix: nvm 0.41.0 restricts arithmetic to numeric suffixes and drops invalid version rows before aliases are stored.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases