CVE-2026-40068 Affecting claude-cli package, versions <2.1.206-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-CLAUDECLI-17960372
  • published14 Jul 2026
  • disclosed5 May 2026

Introduced: 5 May 2026

CVE-2026-40068  (opens in a new tab)

How to fix?

Upgrade Minimos:latest claude-cli to version 2.1.206-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream claude-cli package and not the claude-cli package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1