# Critical Unpatched Cursor Vulnerability Allows Instant Code Execution on Windows—Seven Months Without a Fix
An AI development tool used by millions remains exposed to arbitrary code execution through a trivially exploitable flaw in its Git binary handling.
A critical vulnerability in Cursor, one of the world's most popular AI-assisted development environments, has been left unpatched for over seven months despite multiple disclosure attempts to the vendor. Security firm Mindgard disclosed the flaw publicly on July 15, 2026, revealing that attackers can achieve arbitrary code execution on any Windows developer's machine simply by including a malicious git.exe file in a Git repository's root directory—with no user interaction beyond opening the project.
With Cursor boasting over 7 million active users, the scope of potential exposure is enormous, particularly given that developers often clone and open repositories from untrusted or compromised sources.
## The Threat
The vulnerability is deceptively simple, yet devastating in its implications.
When Cursor loads a project on Windows, it automatically searches for Git binaries in multiple locations to support its version control and repository analysis features. If a developer opens a malicious repository containing a git.exe file in the project root, Cursor will execute that binary automatically as part of its path resolution logic. No warning appears. No approval is requested. The developer never knows their machine has just run untrusted code.
Mindgard describes the exploit as straightforward and practically indistinguishable from a proof-of-concept:
git.exe in the root directoryThe attack requires no:
"Exploitation simply requires a developer to open a project containing a git.exe binary in the repository at the root," Mindgard wrote in its disclosure. "Cursor will execute it automatically as part of its path resolution logic without warning, approval, or even an indication that executable content from the repository is about to run."
## Background and Context
Cursor has rapidly become one of the leading AI-assisted coding environments since its launch, positioning itself as a superior alternative to GitHub Copilot and other AI code assistants. The platform integrates Claude, GPT-4, and other LLMs directly into a developer-friendly IDE, allowing real-time code suggestions, refactoring, and debugging assistance. Its 7+ million active user base includes individual developers, startups, and enterprises—making any widespread vulnerability a potential supply-chain vector for attacks.
The Disclosure Timeline Reveals a Pattern of Silence:
| Date | Event |
|------|-------|
| December 15, 2025 | Mindgard reports vulnerability to Cursor |
| January 2026 | Cursor CISO invites Mindgard to HackerOne bug bounty; issue resubmitted and confirmed reproducible |
| July 15, 2026 | Mindgard publishes public disclosure after seven months of inaction |
According to Mindgard, despite the flaw being confirmed as reproducible on HackerOne and receiving acknowledgment from Cursor's leadership, no patch, timeline, or communication has been provided to affected users. "Coordinated disclosure only works when there is coordination," Mindgard stated in its report. "Seven months after initial disclosure, we have no indication that users are being protected, that remediation is underway, or that affected organizations have been informed."
Cursor has not responded to SecurityWeek's request for comment as of publication.
## Technical Details
Understanding the Path Resolution Attack Vector
The vulnerability stems from how Cursor resolves Git binary locations on Windows systems. The application needs to locate the git executable to perform repository operations, analyze commit history, and support version control features. Rather than hardcoding a single path or requiring explicit user configuration, Cursor searches multiple locations in a predefined order—a practice that is generally reasonable for usability but becomes dangerous when it includes untrusted directories like the workspace itself.
The path resolution logic includes:
On Linux and macOS, this same vulnerability exists in theory but presents far lower practical risk because those operating systems more rigidly enforce executable permissions and lack the .exe file extension semantics that make Windows exploitation straightforward. However, Windows developers face the full brunt of this flaw.
Why This Bypasses Common Defenses
Modern developer machines often run endpoint detection and response (EDR) tools, antivirus software, and security monitoring. However, many of these tools are configured to trust files that exist within a developer's active workspace—the assumption being that developers intentionally added those files. A malicious git.exe disguised as a legitimate repository tool can evade heuristic detection because:
## Implications for Developers and Organizations
The attack surface is broad and growing.
For individual developers:
For organizations:
For AI-assisted development tools:
## Recommendations
For Cursor Users (Immediate Actions)
1. Audit repositories: Review any repositories you've opened in Cursor over the past seven months. Check the root directory for unexpected executables, particularly git.exe, python.exe, or other common tool names.
2. Rotate credentials: Assume your SSH keys, GitHub/GitLab tokens, and API credentials may have been compromised. Rotate all secrets, review recent access logs, and monitor for unauthorized activity.
3. Consider alternatives temporarily: Until a patch is released, consider switching to standard IDE + GitHub Copilot, VS Code, or JetBrains IDEs with Copilot integration as a lower-risk interim solution.
4. Monitor endpoints: Ensure your EDR or antivirus actively monitors the Cursor installation directory and alerts on unexpected child processes.
For Organizations
For Cursor and the Broader Security Community
## HackWire Analysis
This vulnerability is a harbinger of a broader challenge in modern software security: the assumption that developer machines are trustworthy. As development becomes more collaborative, remote, and dependent on third-party tools and repositories, the distinction between "trusted" and "untrusted" code boundaries has blurred dangerously.
What makes this story particularly damaging isn't the flaw itself—it's Cursor's non-response. Seven months of silence after a confirmed, reproducible code execution vulnerability represents a failure of vendor accountability. When a security firm reports a critical flaw, confirms coordination, and receives no patch—no timeline, no acknowledgment beyond basic triage—the only reasonable conclusion is that user security is not the priority.
The timing is also instructive. As AI-assisted development tools rapidly gain adoption and become central to developer workflows, this vulnerability reveals a critical gap: many of these newer vendors haven't yet internalized the security obligations that come with controlling execution on developer machines. They're building products at startup velocity while operating at enterprise risk.
For defenders, this serves as a wake-up call to audit *all* development tools—not just source code—for similar path-resolution and auto-execution flaws. The techniques Mindgard identified in Cursor likely exist in competing tools, waiting discovery. The fact that Cursor's CISO acknowledged the HackerOne submission but took no action afterward is the real scandal here; it shows that even vendor security leadership doesn't guarantee response.
Until Cursor releases a patch and confirms deployment at scale, developers should treat any Cursor-opened repository as potentially compromised. That's not paranoia—that's the appropriate risk posture when a billion-user-scale tool leaves code execution unpatched for half a year.
— HackWire Editorial
## Related Coverage