GHSA-vp62-r36r-9xqp

Suggest an improvement
Source
https://github.com/advisories/GHSA-vp62-r36r-9xqp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-vp62-r36r-9xqp/GHSA-vp62-r36r-9xqp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vp62-r36r-9xqp
Aliases
  • CVE-2026-39861
Published
2026-04-21T18:51:21Z
Modified
2026-05-05T16:11:17.173956Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
  • 7.7 (High) CVSS_V4 - 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 Calculator
Summary
Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace
Details

Claude Code's sandbox did not prevent sandboxed processes from creating symlinks pointing to locations outside the workspace. When Claude Code subsequently wrote to a path within such a symlink, its unsandboxed process followed the symlink and wrote to the target location outside the workspace without prompting the user for confirmation. This allowed a sandbox escape where neither the sandboxed command nor the unsandboxed app could independently write outside the workspace, but their combination could write to arbitrary locations, potentially leading to code execution outside the sandbox. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window to trigger sandboxed code execution via prompt injection.

Users on standard Claude Code auto-update have received this fix automatically. Users performing manual updates are advised to update to the latest version.

Claude Code thanks hackerone.com/philts for reporting this issue.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-21T18:51:21Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-61"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2026-04-21T01:16:06Z"
}
References

Affected packages

npm / @anthropic-ai/claude-code

Package

Name
@anthropic-ai/claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.64

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-vp62-r36r-9xqp/GHSA-vp62-r36r-9xqp.json"