When a vendor won't fix a vulnerability, researchers face a hard choice: stay quiet and leave users exposed, or go public and hand defenders the information they need. Mindgard chose the latter with a zero-day affecting Cursor, the AI-powered code editor that has become a staple for many engineering teams.

The flaw allows a malicious actor to craft a prompt that causes Cursor's AI agent to execute arbitrary commands on the developer's machine. Because Cursor operates with the same system privileges as the developer running it, the blast radius is significant — code execution, file access, and potential lateral movement within a development environment are all on the table.

Cursor Zero-Day: Why Researchers Went Public Without a Vendor Fix

The attack vector is prompt injection: malicious instructions hidden inside content the AI reads — think a README, a code comment, or a dependency file — that hijack the model's behavior. This is not a theoretical class of attack. It is increasingly the go-to technique for compromising agentic AI systems that act on external data without sanitizing it.

Mindgard reported the issue to Cursor's maintainers and, after the vendor declined to issue a patch or timeline, opted for full public disclosure. The decision follows an established but uncomfortable precedent in security research: when coordinated disclosure fails, transparency becomes the user's only defense.

If you use Cursor in agentic or autonomous modes — where it browses files, runs terminal commands, or installs packages — treat any external content it processes as untrusted input. Disable autonomous execution features when working with third-party repositories or unfamiliar codebases. More broadly, this case is a reminder that AI coding tools inherit all the attack surface of the underlying model plus the permissions of the user running them: a combination that deserves the same threat-modeling rigor you'd apply to any privileged process on your system.