Cursor IDE Git Hook RCE
When an AI Coding Agent Turns Git Hooks Into Workstation Code Execution
Novee Security researcher Assaf Levkovich disclosed CVE-2026-26268 on April 28, 2026 — a high-severity arbitrary code execution flaw in Cursor IDE versions before 2.5. Unlike traditional Git hook vulnerabilities that require a user to manually run a Git command, this attack exploits agentic IDE behavior: the AI coding agent autonomously performs Git operations in response to a user's innocuous request, unknowingly triggering malicious hooks embedded in attacker-controlled repositories. Developers don't need to do anything suspicious. Asking the agent to explain a codebase is enough.
"The agent performed a Git checkout on my behalf. I only asked it to explain the project. The hook ran before I knew what happened."
— Researcher demonstration, Novee Security
Members only
Full technical analysis, attack chain, IOCs, and the defensive checklist are available to registered members — free to join.