nday
CVE-2026-88968 GHSA-5xjx-9qx6-jcrv

Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace

anthropics / claude-code

Disclosed . Patched: fixed in @anthropic-ai/claude-code 2.1.251. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

race condition
CWE-367, stated by the CNA GitHub_M, NVD, republishing [email protected], and GitHub advisory GHSA-5xjx-9qx6-jcrv
link following
CWE-59, stated by the CNA GitHub_M, NVD, republishing [email protected], and GitHub advisory GHSA-5xjx-9qx6-jcrv
network
AV:N in CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA GitHub_M
no authentication required
PR:N in CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (CVSS 4.0) from the CNA GitHub_M
npm
GHSA-5xjx-9qx6-jcrv: npm packages @anthropic-ai/claude-code
stage
PAT
disclosed
cvss
7.7 HIGH v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-03T20:08Z
PATpatch
@anthropic-ai/claude-code 2.1.251
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

Claude Code is an agentic coding tool. Prior to 2.1.251, the Edit tool validates a target using pathname and symlink resolution that is not bound to the underlying directory inode or file descriptor. On macOS, attacker-controlled code running in the Bash sandbox can atomically replace an in-workspace parent directory with a symlink after validation, causing the unsandboxed Edit implementation to overwrite a user-writable file outside the workspace. Exploitation requires attacker-controlled code to run inside the sandbox, such as from a malicious repository or dependency script. This issue is fixed in version 2.1.251.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:P
Passive: limited, involuntary interaction, such as visiting a page

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 4.0 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 7.7, high.

src cvelist · nday , bulk import · raw
{
  "id": 19145,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-88968",
  "occurred_at": "2026-11-03T20:08:47.362Z",
  "observed_at": "2026-11-12T15:03:42.190415Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "version": "4.0",
      "base_score": 7.7,
      "base_severity": "HIGH"
    },
    "ssvc": {
      "timestamp": "2026-11-03T21:29:03.036554Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-03T20:08:47.362Z",
    "assigner_short_name": "GitHub_M"
  }
}
time unknownsource gave no time
+PATpatch released

The advisory gives fixed version @anthropic-ai/claude-code 2.1.251. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-5xjx-9qx6-jcrv · nday , bulk import · raw
{
  "id": 18898,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-5xjx-9qx6-jcrv",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-5xjx-9qx6-jcrv",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 7.7,
        "vector_string": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
      }
    },
    "cwes": [
      {
        "name": "Improper Link Resolution Before File Access",
        "cwe_id": "CWE-59"
      },
      {
        "name": "Time-of-check Time-of-use (TOCTOU) Race Condition",
        "cwe_id": "CWE-367"
      }
    ],
    "ghsa_id": "GHSA-5xjx-9qx6-jcrv",
    "packages": [
      {
        "name": "@anthropic-ai/claude-code",
        "ecosystem": "npm",
        "first_patched_version": "2.1.251",
        "vulnerable_version_range": "< 2.1.251"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/anthropics/claude-code/security/advisories/GHSA-5xjx-9qx6-jcrv",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-88968",
      "https://github.com/anthropics/claude-code/releases/tag/v2.1.251",
      "https://github.com/advisories/GHSA-5xjx-9qx6-jcrv"
    ],
    "fix_commit_urls": [],
    "github_reviewed_at": "2026-11-09T22:42:03Z",
    "advisory_updated_at": "2026-11-09T22:42:04Z",
    "source_code_location": "https://github.com/anthropics/claude-code",
    "advisory_published_at": "2026-11-09T22:42:03Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.