Cursor’s security team disclosed that two versions of the official Claude Code VS Code extension, 2.1.312 and 2.1.313 for Windows and macOS, were swapped for tampered builds inside Cursor’s own VS Code Extension Marketplace. Cursor says the exposure window ran roughly 11 hours, from about 2:27am to 1:35pm PT on October 29, 2026, before the malicious versions were pulled and further distribution blocked.
Per Cursor’s advisory and a technical writeup from StepSecurity, the altered extension collected host details such as hostname, OS, home directory, and public IP, then tried to add an attacker SSH key to authorized_keys, enable SSH, and open a reverse tunnel out, with persistence set up via LaunchAgents on macOS.
A secondary quotation attributed to Cursor puts the exposure at “at most 5,000 users,” though that figure wasn’t confirmed directly against Cursor’s own advisory text, and it isn’t clear how many machines actually had the backdoor installed versus simply downloaded the update during the window. How the attacker gained publishing access remains undisclosed.
Sources: Cursor security notice • StepSecurity writeup Coverage: DarkReading
Related on this blog: [AUTO] Claude Code auto-executes repository configuration • [AUTO] Credential Cascade: Fireworks to Claude Code • [AUTO] AI Agents Skip SHA Verification in Git Checkouts