Cursor patches Slack-triggered code execution flaw
At a glance
- Immediate action: Cursor, a popular AI code editor, patched a serious security flaw.
- Exploit potential: A malicious Slack message could trick the editor’s AI agent into running an attacker’s code.
- Developer response: Cursor shipped a fix in version 1.3.9; users on 1.2.1 or earlier should update.
- Collaboration and transparency: Researchers reported the flaw privately, and Cursor published an advisory.
The flaw
Cursor is an AI-powered code editor built to speed up developers’ work. Researchers found a flaw in it. Tracked as CVE-2025-54135 and nicknamed “CurXecute,” it let an attacker run code on a developer’s machine, which is about the worst thing that can happen with a tool that already sits on top of source code, API keys and cloud credentials.
How Slack came into it
Cursor can connect to outside services such as Slack through the Model Context Protocol (MCP), so its AI agent can read messages and other data. Researchers showed that an attacker could post a message with hidden instructions in a Slack channel. When a developer asked Cursor’s agent to work with that channel, the injected text could get the agent to rewrite its MCP configuration file and start an attacker’s command, without asking the user first.
The fix
Cursor patched the issue after researchers reported it. Version 1.3.9 is the fix.
Know what matters before your first meeting.
Weekday mornings. Five minutes. What changed in security, why it matters.
By subscribing you agree to our Privacy Policy.
Free. Weekday mornings. 5 minutes or less.
The fix changes how the editor handles edits to sensitive MCP configuration files, so a prompt injection can no longer quietly add and launch a new server.
Disclosure done right
The case shows how coordinated disclosure should work. Report privately, fix, publish.
AI agents bring new risks
The incident is a reminder that AI coding agents create a new kind of attack surface. Anything the agent reads, including chat messages, web pages and documents, can carry instructions an attacker planted.
Keep AI tools updated. Limit which outside services an agent can reach, and require approval before an agent changes its configuration or runs a command on your machine, even when that slows things down a little.
Know what matters before your first meeting.
Weekday mornings. Five minutes. What changed in security, why it matters.
By subscribing you agree to our Privacy Policy.
Free. Weekday mornings. 5 minutes or less.
What developers should take from it
This flaw shows how quickly risks can appear when AI agents get access to outside data and the power to run code. It also shows the value of fast patching and clear advisories.
Teams using AI editors should check that they run a patched version and review which integrations their agents can use.
Newer CyberExperts coverage on this topic
This article still works as background. If you want the current picture, start with the freshest related coverage below and today's brief.
Citrix NetScaler CVE-2026-19490: The Auth Bypass That Went From PoC to Probes in a Day
CVE-2026-19490 is a CVSS 9.3 NetScaler Gateway/AAA auth bypass. A public PoC on Sept 2 was followed by live probes within a...
PaperCut NG/MF: The Print Server That Learned Remote Code Execution Again
CVE-2026-81578 and CVE-2026-82078 chain to pre-auth RCE on PaperCut Application Server. Confirm Emergency Patch Release 2, restrict admin exposure, and hunt like...
JFrog Artifactory CVE-2026-82329: Empty Join Key, Full Admin Token, Busy Scanners
CVE-2026-82329 lets attackers forge Artifactory admin tokens via a deterministic empty join key. Mass scanning peaked near 406,000 attempts; patch fixed builds...
Friday’s brief: GitLab’s 10.0 fix, then VeloCloud attacks, a poisoned LiteLLM release and PHP2Shell logs to check
The fastest way to catch up on what changed after this article was published.
Start your morning with the signal that matters.
Get the biggest cybersecurity developments, why they matter, and where to go deeper on CyberExperts.
By subscribing you agree to our Privacy Policy.
Free. Weekdays. Built for operators.