AIToday
AI Coding AssistantsAI Safety & AlignmentGIGAZINE AIPublished: Nov 2, 2026, 22:01 JST

Cursor pulls Claude Code 2.1.312/2.1.313 over malicious code

Send on LINE
Cursor pulls Claude Code 2.1.312/2.1.313 over malicious code

3 Key Points

  1. What happened

    Cursor said Claude Code extension versions 2.1.312 and 2.1.313 carried malicious code on its official marketplace from about 18:27 JST Oct 29 to 5:35 JST Oct 30, 2026, and it has stopped distributing both for macOS and Windows.

  2. Why it matters

    Users who installed the affected versions may still retain malicious SSH keys and auto-start settings even after uninstalling Claude Code, so Cursor recommends additional cleanup steps.

WHO IT HITSSoftware developers who installed Claude Code through Cursor's marketplace on macOS or Windows are the most directly affected, since residual SSH keys and auto-start settings may persist after uninstalling the extension.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The incident centers on a tampered build appearing inside Cursor's marketplace, rather than a compromise of Anthropic's own systems or employee machines. According to Phorion's analysis, the attackers inserted malicious code at the start of the extension's extension.js file, so the harmful routine began as soon as the extension loaded. The code sought to add an attacker-controlled public key to the authorized_keys file and set up a reverse SSH tunnel, with persistence mechanisms spanning macOS LaunchAgent, Linux cron, and Windows Task Scheduler. On many macOS and Windows environments the code failed to enable the SSH service due to insufficient administrator rights, Cursor said, but the attacker key addition, auto-start configuration, and PC data transmission still executed. Cursor has removed the extension, paused the marketplace for investigation, and shut down the attacker's server, while publishing verification steps and repair scripts for affected users.

FAQ
Which versions of Claude Code were affected?
Versions 2.1.312 and 2.1.313 of the Claude Code extension distributed through Cursor's official marketplace.
What did the malicious code try to do?
It attempted to add an attacker's public key to the authorized_keys file and set up a reverse SSH tunnel, while also collecting PC name, username, OS type, public IP address, and Git-configured email address.
Is the official Claude Code distribution from Anthropic affected?
No. An Anthropic representative said on Hacker News that Anthropic's official distribution channel for Claude Code is not affected.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleTerence Tao warns 'slow down' after OpenAI's 722-problem math release