{"url":"http://public2.vulnerablecode.io/api/packages/1020712?format=json","purl":"pkg:npm/%40anthropic-ai/claude-code@2.1.70","type":"npm","namespace":"@anthropic-ai","name":"claude-code","version":"2.1.70","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2.1.84","latest_non_vulnerable_version":"2.1.84","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/84190?format=json","vulnerability_id":"VCID-2f9f-gms1-5qbb","summary":"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.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40068","reference_id":"","reference_type":"","scores":[{"value":"0.00136","scoring_system":"epss","scoring_elements":"0.33308","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40068"},{"reference_url":"https://github.com/anthropics/claude-code","reference_id":"","reference_type":"","scores":[{"value":"7.7","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/anthropics/claude-code"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40068","reference_id":"","reference_type":"","scores":[{"value":"7.7","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40068"},{"reference_url":"https://github.com/advisories/GHSA-q5hj-mxqh-vv77","reference_id":"GHSA-q5hj-mxqh-vv77","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-q5hj-mxqh-vv77"},{"reference_url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77","reference_id":"GHSA-q5hj-mxqh-vv77","reference_type":"","scores":[{"value":"7.7","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-05-06T14:50:01Z/"}],"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-q5hj-mxqh-vv77"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/373666?format=json","purl":"pkg:npm/%40anthropic-ai/claude-code@2.1.84","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540anthropic-ai/claude-code@2.1.84"}],"aliases":["CVE-2026-40068","GHSA-q5hj-mxqh-vv77"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-2f9f-gms1-5qbb"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/71586?format=json","vulnerability_id":"VCID-k12x-zwx4-vbdc","summary":"Claude Code is an agentic coding tool. In versions prior to 2.1.75 on Windows, Claude Code loaded the system-wide default configuration from C:\\ProgramData\\ClaudeCode\\managed-settings.json without validating directory ownership or access permissions. Because the ProgramData directory is writable by non-administrative users by default and the ClaudeCode subdirectory was not pre-created or access-restricted, a low-privileged local user could create this directory and place a malicious configuration file that would be automatically loaded for any user launching Claude Code on the same machine. Exploiting this would have required a shared multi-user Windows system and a victim user to launch Claude Code after the malicious configuration was placed. This issue has been fixed on version 2.1.75.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35603","reference_id":"","reference_type":"","scores":[{"value":"0.00012","scoring_system":"epss","scoring_elements":"0.01946","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-35603"},{"reference_url":"https://github.com/anthropics/claude-code","reference_id":"","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"value":"5.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/anthropics/claude-code"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35603","reference_id":"","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"value":"5.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35603"},{"reference_url":"https://github.com/advisories/GHSA-5cwg-9f6j-9jvx","reference_id":"GHSA-5cwg-9f6j-9jvx","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-5cwg-9f6j-9jvx"},{"reference_url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5cwg-9f6j-9jvx","reference_id":"GHSA-5cwg-9f6j-9jvx","reference_type":"","scores":[{"value":"7.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"value":"5.4","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-04-20T14:52:20Z/"}],"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-5cwg-9f6j-9jvx"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/374231?format=json","purl":"pkg:npm/%40anthropic-ai/claude-code@2.1.75","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-2f9f-gms1-5qbb"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540anthropic-ai/claude-code@2.1.75"}],"aliases":["CVE-2026-35603","GHSA-5cwg-9f6j-9jvx"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-k12x-zwx4-vbdc"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540anthropic-ai/claude-code@2.1.70"}