{
  "id": "cve-2026-121748",
  "title": "A project .npmrc can redirect nvm prefix cleanup to another file",
  "product": "nvm (Node Version Manager)",
  "ai_system": "Anthropic OSS Scanner (model unspecified)",
  "organization": "Anthropic and nvm maintainers",
  "summary": "When nvm use --delete-prefix invokes npm config delete, npm reads the project .npmrc first and may edit a user-selected config file. A malicious project can cause a victim’s config file to be rewritten or left world-writable; on a shared machine that can expose file contents or permit another local user to modify it. The advisory says project code does not run and the attacker chooses the target, not written bytes.",
  "ai_role": "The nvm advisory explicitly credits Anthropic OSS Scanner (ANT-2026-WYRTKBQ5). Anthropic’s Oct 8 announcement says the scanner uses its strongest models, including Claude Mythos, and issues model-generated reports; exact model and workflow for this finding are not stated.",
  "disclosure_date": "2026-11-04",
  "ai_attribution_date": "2026-11-04",
  "classification": "disclosure",
  "classification_note": "The nvm maintainer published GHSA-ccgf-7gv4-xg5h on Nov 4, 2026 and lists CVE-2026-121748. 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.",
  "cves": [
    "CVE-2026-121748"
  ],
  "source_url": "https://github.com/nvm-sh/nvm/security/advisories/GHSA-ccgf-7gv4-xg5h",
  "ai_source_url": "https://github.com/nvm-sh/nvm/security/advisories/GHSA-ccgf-7gv4-xg5h",
  "remediation": "fix documented",
  "remediation_note": "nvm 0.41.0 prevents project .npmrc settings from selecting the config file that npm edits during prefix cleanup.",
  "advisory_url": "https://github.com/nvm-sh/nvm/security/advisories/GHSA-ccgf-7gv4-xg5h",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-121748",
      "version": "4.0",
      "score": 1.8,
      "vector": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/121xxx/CVE-2026-121748.json",
      "source_name": "harborist (CNA; CVE Program record)",
      "checked_date": "2026-11-16",
      "scenarios": [
        "GENERAL"
      ]
    },
    {
      "cve": "CVE-2026-121748",
      "version": "3.1",
      "score": 3.6,
      "vector": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/121xxx/CVE-2026-121748.json",
      "source_name": "harborist (CNA; CVE Program record)",
      "checked_date": "2026-11-16",
      "scenarios": [
        "GENERAL"
      ]
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-121748"
      ],
      "consequences": [
        "data modification"
      ],
      "conditions": "A cloned repository/archive or local user in a writable shared parent can control project `.npmrc`; when a user runs `nvm use --delete-prefix`, npm may rewrite a selected config such as ~/.bashrc or make a global config world-writable. The attacker chooses the target but not written bytes, and no project code runs.",
      "exploitation": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/121xxx/CVE-2026-121748.json",
      "checked_date": "2026-11-16"
    }
  ]
}
