{
  "entry": {
    "kind": "vuln",
    "slug": "cve-2026-46406",
    "name": "CVE-2026-46406",
    "vendor": "Claude Code",
    "description": "Claude Code's /copy command wrote every response to the hardcoded path /tmp/claude/response.md, world-readable and in a traversable directory, so any other local user on a shared machine or build host could read every secret, API key and code snippet a developer copied through it. The fixed path also allowed a symlink attack: an attacker could point that location at any file on disk and have Claude Code overwrite it. NVD rated it CVSS 6.1; GitHub's CVSS 4.0 assessment rated it 4.4. Fixed in 2.1.128.",
    "website": "https://nvd.nist.gov/vuln/detail/CVE-2026-46406",
    "repository": null,
    "documentationUrl": null,
    "license": null,
    "version": null,
    "trustLevel": "advisory",
    "capabilities": [],
    "packaging": null,
    "configFiles": null,
    "category": "agent",
    "updatedAt": "2026-06-29",
    "risk": {
      "score": 61,
      "band": "medium",
      "signals": [],
      "dangerousCombos": []
    },
    "dangerousCombos": [],
    "vuln": {
      "id": "CVE-2026-46406",
      "aliases": [
        "ti-058"
      ],
      "title": "CVE-2026-46406: Claude Code /copy Wrote Secrets to a World-Readable Temp Path",
      "summary": "Claude Code's /copy command wrote every response to the hardcoded path /tmp/claude/response.md, world-readable and in a traversable directory, so any other local user on a shared machine or build host could read every secret, API key and code snippet a developer copied through it. The fixed path also allowed a symlink attack: an attacker could point that location at any file on disk and have Claude Code overwrite it. NVD rated it CVSS 6.1; GitHub's CVSS 4.0 assessment rated it 4.4. Fixed in 2.1.128.",
      "severity": "medium",
      "cvss": {
        "score": 6.1,
        "vector": null,
        "version": null
      },
      "cwe": [],
      "attackType": [
        "Path traversal",
        "Information disclosure"
      ],
      "componentType": "agent",
      "component": {
        "name": "Claude Code",
        "vendor": null,
        "package": null,
        "ecosystem": null,
        "catalogSlug": null
      },
      "affected": [
        {
          "range": "Claude Code 2.1.59 through 2.1.127",
          "fixed": "2.1.128"
        }
      ],
      "exploited": false,
      "exploitPublic": false,
      "publishedAt": "2026-06-29",
      "modifiedAt": "2026-06-29",
      "lastVerified": "2026-11-01",
      "references": [
        {
          "type": "cve",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46406"
        }
      ],
      "mitigation": "Upgrade Claude Code to 2.1.128+. Shared build hosts and multi-user developer machines are the real exposure: rotate any credential copied through /copy while a vulnerable version was running.",
      "detectedByAnomity": true
    }
  }
}