Mondoo advisory · vscode-extension
Malicious Claude Code for VS Code extension 2.1.312 and 2.1.313 from the Cursor marketplace installs a persistent SSH backdoor
Versions 2.1.312 and 2.1.313 of the Claude Code for VS Code extension (Anthropic.claude-code)
for macOS and Windows were distributed through the Cursor extension marketplace with a malicious
loader prepended to the bundled extension.js. The loader runs as soon as a VS Code-based editor
loads the extension, before the extension activates and without any user interaction, and
installs a persistent SSH backdoor. The loader also contains Linux code paths, but Cursor
identified modified packages only for macOS and Windows.
Cursor confirmed that the malicious versions were available in its…
10.0/CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HExploitability
AV:NAC:LPR:NUI:NScope
S:CImpact
C:HI:HA:HRemediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources