GHSA-q5hj-mxqh-vv77 · Severity: high · Ecosystem: npm — Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
In versions 2.1.63 through 2.1.83 of Claude Code, the folder trust determination logic used the git worktree commondir file without validating its contents. An attacker could craft a malicious repository with a commondir file pointing to a path the victim had previously trusted, causing Claude Code to bypass its trust confirmation dialog and immediately execute hooks defined in `.claude/settings.json`. Exploitation requires the victim to clone the malicious repository and run Claude Code within it, and the attacker must know or guess a path the victim had already trusted. This issue has been fixed in version 2.1.84.
Conclusion & alert: CVE-2026-40068 is rated Low Risk (37.8/100): CVSS High severity, with low exploitation likelihood (EPSS 0.28%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.12% | 0.28% | +0.16% |
| 2 | 2026-05-22 | 0.17% | 0.12% | -0.04% |
| 3 | 2026-05-13 | — | 0.17% | — |
Full EPSS history (4 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.7 | 4.0 | HIGH |
|
— | — | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-q5hj-mxqh-vv77 · Severity: high · Ecosystem: npm — Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| anthropic | claude_code | >= 2.1.63, < 2.1.84 | cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77 | Vendor Advisory |