Caught in the Hook: RCE and API Token Exfiltration Through Claude Code Project Files | CVE-2025-59536 | CVE-2026-21852
Source Check Point Research
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.7 High.
Data as of 5 Nov 2026, 00:01 UTC
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
AI-suggested
To mitigate these vulnerabilities, organizations should immediately audit and restrict the use of project configuration files in Claude Code environments. Implement strict validation and sanitization of Hooks, MCP server settings, and environment variables to prevent injection of malicious commands. Employ least privilege principles for API tokens and rotate credentials regularly to limit exposure. Isolate Claude Code execution environments using containerization or sandboxing to contain potential exploits. Monitor logs and network traffic for unusual activity related to project file loading or API token usage. Coordinate with Anthropic for official patches or updates addressing these vulnerabilities and apply them promptly once available. Additionally, establish secure development lifecycle practices including code reviews and supply chain verification to prevent introduction of malicious configurations. Educate developers and administrators about the risks associated with project file handling and enforce policies restricting untrusted file usage.
Description
By Aviv Donenfeld and Oded Vanunu Executive Summary Check Point Research has discovered critical vulnerabilities in Anthropic’s Claude Code that allow attackers to achieve remote code execution and steal API credentials through malicious project configurations. The vulnerabilities exploit various configuration mechanisms including Hooks, Model Context Protocol (MCP) servers, and environment variables -executing arbitrary shell commands […] The post Caught in the Hook: RCE and API Token Exfiltration Through Claude Code Project Files | CVE-2025-59536 | CVE-2026-21852<other cve="" id="" tbd=""></other> appeared first on Check Point Research .