Products Lemma APIProof issuance & verification platformTrust402Delegate to agents, and transactSealSign-in for the agent era — no keys handed over
Use cases Manufacturing & Critical InfraInspection Record AssuranceFinance & FinTechCounterparty Record VerificationPublic SectorCertificate-less ProceduresHealthcareQualified Worker AssuranceProcurement & Supply ChainSupplier Credential MonitoringMedia & ContentContent AuthenticityService & RetailCross-group IdentityAI Adoption (cross-industry)AI Run GovernanceDevelopers & Agent OpsAgent Authority Control ▸ Browse the use-case index
Pricing
Resources Critical BriefThe frontier of AI × trustBlogThinking and implementation notesDocumentationAPI & specsVerification CenterReal verification & issuance countsAbout usFRAME00, Inc.ContactSales & press inquiriesGlossaryDefinitionsFAQFrequently asked questions
Dashboard ↗ JA
Home / Critical Brief / No. 094
No. 094 Critical Brief · Agent Authority Proof

Cursor (DuneSlide): an injected instruction could escape the AI agent's sandbox (Cato AI Labs report)

9.8
NVD CVSS 3.1 score of both CVE-2026-50548 and CVE-2026-50549. Both Critical
2
Vulnerabilities Cato AI Labs reported under the name "DuneSlide," each reaching writes outside the sandbox through a different hole
3.0
The Cursor version with the fix (released 2026-04-02). All versions below 3.0 are affected
CountryGlobal
Incident date2026-07-01
Published2026-07-03
AuthorsLemma Critical Team
Contents
  1. 01Summary
  2. 02What got through
  3. 03Pre-execution check
  4. 04What Lemma does
  5. 05Facts and timeline
  6. 06Sources

Summary

According to Cato AI Labs, the attacker does not type into Cursor. They hide an instruction in what the agent reads on the user’s behalf (data from an MCP-connected service, or a page returned by a web search), and when the user asks a normal question, the instruction is pulled in with it. Both flaws get one file written that should not be writable and use that write to disable the sandbox, with no click or approval needed. There is no report of in-the-wild exploitation; this is a research disclosure. Unless the place an agent writes to is checked before execution against a scope decided apart from what the agent specifies or how a link resolves, a single instruction slipped into what it reads can rewrite the safeguard itself.

Exhibit 1Detection vs pre-execution check

A pre-execution check means checking, before an agent writes, that the target is within the permitted scope, and keeping a record. Detection means finding, reporting and fixing vulnerabilities. The dates are when the issues were reported, fixed and published, not when the routes were used.

Pre-execution check · not known from the disclosuresBefore writing, check that the target is within the permitted scope
What was confirmedInjected instructions could get writes
outside the sandbox through
Detection · Cato AI Labs reported, Cursor fixedVulnerability report, fixed version, publication
02-19
Cato AI Labs reports both flaws
04-02
Cursor 3.0 with the fix
06-05
CVE IDs assigned
07-01
Published as DuneSlide

What got through

What got through
Writes by the agent to files outside the project. According to Cato AI Labs, in CVE-2026-50548, when the agent set a command’s working folder to a non-default path, Cursor added that path to the write allowlist without validation. In CVE-2026-50549, when the step that checks, before writing, whether a link’s actual destination is inside the project failed, Cursor trusted the “in-project” path the link pointed to (Cursor’s advisory also describes this as a flaw in the fallback of link validation). The write targets were the sandbox helper file and files read when the shell starts.
What reached the receiving side
In general, commands that run outside the sandbox run with the developer’s own privileges. According to Cato AI Labs, once the sandbox is disabled, the next command runs as the developer, and beyond taking over the machine it can reach the cloud and SaaS workspaces the editor is signed into.
Not disclosed
The number of affected users. The details of the similar flaws in other coding agents that Cato AI Labs says it is disclosing.

Pre-execution check

Whatever the route, the condition for telling them apart is that, before an agent writes to a file, it checks that the target is within the permitted scope, apart from the path the agent specified or the result of link resolution.

The core of this case
Unless the place an agent writes to is checked before execution against a scope decided apart from what the agent specifies or how a link resolves, a single instruction slipped into what it reads can rewrite the safeguard itself.
Who approves
The development teams that use the agent, and those who manage the editor. They decide the scope the agent may write to (such as inside the project) apart from what the agent specifies. Writes outside that scope, especially to the editor’s own files or startup files, are approved by a person.
Where it is checked
Just before the editor moves the agent’s writes or commands into execution. It checks that the target is within the decided scope, and does not execute writes that cannot be checked. When the check fails, it does not fall back to trusting the original specification.
What is recorded
Which instruction the agent acted on, and which writes or commands it performed under which permission (or which were stopped). Kept apart from the agent, in a form that can be shown later.

The researcher’s report and the fixed version worked, and the two known routes were closed before publication. What did not work was the layer before that, which checks the agent’s write targets before execution against a scope decided apart from what the agent specifies. It connects with Brief 037, where a repository-bundled config was auto-executed, Brief 039 on Semantic Kernel, where prompt injection could lead to code execution on the host and Brief 048, where invisible commands were planted in AI instruction files, in that the origin of the input the AI reads is not checked before it connects to execution; and with Brief 027 on LibreChat and Brief 058 on LangGraph, in that input turns directly into execution in agent infrastructure.

What Lemma does

Lemma builds the pre-execution check into the point just before the editor moves the agent’s writes or commands into execution. It does not look for prompt injection; it checks the agent’s write targets, before execution, against a permitted scope managed apart from what the agent specifies.

Industries and operations to watch

IndustryDevelopers
Development teams that let the agent in an AI code editor such as Cursor run terminal commands and write files. The agent’s privileges extend to the developer’s own and to the clouds they are signed into.
IndustryAI
Organizations that build and ship agents reading input whose origin the agent cannot choose, such as MCP-connected services and web-search results.

Current controls vs Lemma

This incident’s CVE-2026-50548 route falls in column 1, and the CVE-2026-50549 route in column 2. Column 3 is not a route in this incident.

Control Writes outside the scope through what the agent specifies (such as the working folder) Writes outside the scope through a failed safety check Writes or commands within the scope, driven by an injected instruction
Updating to the fixed version (Cursor 3.0) Partial Partial Not relevant
Sandbox (default fence around commands) Partial Partial Not effective
Lemma (pre-execution check) Effective Effective Not effective

Updating to the fixed version closes the two known routes, but if another hole is found, the same shape remains. The sandbox is meant to stop writes outside the scope, but here its permission decision relied on what the agent specified and on the result of link resolution, so a single write could remove it. Lemma checks the write target before execution against a scope managed apart from what the agent specifies, and stops when it cannot be checked, so writes in columns 1 and 2 stop before they run. On the other hand, if writes or commands following an injected instruction happen within the permitted scope, the check matches.

Note: Lemma’s check works only when it is built into the editor’s execution of the agent’s writes and commands, and the scope that may be written to is managed apart from what the agent specifies and the input the agent reads. If the scope is set broadly, malicious writes within it go through. The check neither finds instructions in the input nor fixes flaws in the editor. The table compares what each control checks; it does not show whether this incident would have been stopped. Lemma does not detect or prevent intrusions.

CheckChecklist

Three things to confirm in organizations that use agents in AI code editors

  • Is the Cursor you use on a fixed version (3.0 or later)?
  • Do you know the external input the agent reads (MCP-connected services, web search), and keep connections to only those needed?
  • Can you see, apart from the agent, a record of the commands the agent ran and the files it wrote?

Facts and timeline

Subject
Cursor (an AI code editor). Since the 2.x line, it runs the terminal commands its agent issues inside a sandbox by default.
Identifiers
CVE-2026-50548 and CVE-2026-50549, named “DuneSlide” by Cato AI Labs.
Severity
both 9.8 (Critical) on NVD’s CVSS 3.1.
Entry point (Cato AI Labs)
instructions hidden in what the agent reads on the user’s behalf, such as data from MCP-connected services or web-search results. “Zero-click,” needing no click or approval.
CVE-2026-50548 (Cato AI Labs)
when the agent set the working folder of a terminal command to a non-default path, Cursor added that path to the write allowlist without validation.
CVE-2026-50549 (Cato AI Labs, Cursor’s advisory)
in the fallback when the step that checks a link’s destination before writing failed, Cursor trusted the in-project path the link pointed to.
Impact (Cato AI Labs)
once the sandbox is disabled, the next command runs as the developer and can reach the machine and the cloud / SaaS the editor is signed into. All versions below 3.0 are affected.
Exploitation status
no report of in-the-wild exploitation. Cato AI Labs presents it as research, not an active campaign, and public vulnerability records also note “no confirmed exploitation.”

Glossary
Cursor — An AI code editor. Its agent takes a user's request and runs terminal commands and file operations.
Sandbox — A mechanism that fences in command execution and limits what it can touch. Since the 2.x line, Cursor runs the terminal commands its agent issues inside one by default.
MCP — A mechanism for AI agents to connect to external services and tools. The agent reads the data the connected service returns.
Prompt injection — A technique that slips commands into documents, search results or external data the AI reads, so the AI treats them as instructions.

Timeline

2026-02-19
Cato AI Labs reported both flaws to Cursor.
~2026-02-23
According to Cato AI Labs, Cursor initially declined the report on the grounds that “the threat model does not cover abuse of MCP servers (including standard ones such as the official Linear workspace).”
2026-02-26
Cato AI Labs escalated again, and Cursor reopened the report and began triage.
2026-04-02
Cursor 3.0, containing the fix, was released.
2026-06-05
CVE identifiers were assigned.
2026-07-01
Cato AI Labs published the flaws as “DuneSlide.” Cursor published its advisory for the link flaw (GHSA-3v8f-48vw-3mjx), and the NVD record went public.

The facts in this Brief rest on Cato AI Labs’ disclosure, Cursor’s GitHub Security Advisory and the NVD entry. The account of how the report was received is Cato AI Labs’ description. This Brief does not include reproduction steps. What has not been disclosed does not mean there were no controls.

After disclosure

  • Cursor: fixed both flaws in 3.0 (2026-04-02) and published an advisory (GHSA-3v8f-48vw-3mjx) for the link flaw.
  • Cato AI Labs: says it is disclosing similar flaws in other coding agents and argues the problem is structural, posing to the industry the question of “once you ship agents that read the web, will you make treating all input as hostile the default, or keep chasing patches?”

Sources

References: “The last layer left for cyber defense in the age of AI”

The same method elsewhereSee all 40 "AI failure or misuse" cases

This Brief sets out, from disclosed facts, what organisations in a similar position can check. It is not guidance on individual losses or procedures.

This material is a structured analysis of public information; it is not an audit, diagnosis, or recommendation for any specific organization.

Cite this Brief

Lemma Critical Team. (2026).
"Cursor (DuneSlide): an injected instruction could escape the AI agent's sandbox (Cato AI Labs report)".
Lemma Critical Brief No.094. Lemma / FRAME00, Inc.
https://lemma.frame00.com/critical/briefs/094-cursor-duneslide-sandbox-escape/
Read nextNext
All Briefs →
Lemma

If it can't be verified,
it doesn't enter your operation.

Lemma is a pre-execution check: logins, payments, records and publishing that look genuine are checked before they run, with cryptographic proofs the receiving side verifies without asking the issuer. Detection stays; the check sits in front of it.