Skip to main content
Mallory
CriticalVulnerability

CVE-2026-50549: Cursor symlink canonicalization sandbox escape RCE

Published Jun 25, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.3Critical · v4
EPSS1.0%62nd percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Anysphere
IdentifiersCVE-2026-50549CWE-59 · Improper Link Resolution Before…

CVE-2026-50549 is a critical vulnerability in Cursor versions prior to 3.0 that affects the agent write path used by the IDE’s AI-assisted workflow. Before performing a write, Cursor canonicalizes the requested target path to verify that the resolved destination remains داخل the workspace boundary. If canonicalization fails, however, the implementation falls back to the original unresolved path and proceeds with the write without requiring approval. An attacker controlling agent input can exploit this by creating a symlink inside the workspace that points to a location outside the workspace and then forcing canonicalization to fail, such as by targeting a non-existent destination or removing read permission from part of the path. Because the fallback trusts the in-workspace symlink path rather than the real resolved destination, Cursor can be induced to write arbitrary files outside the workspace under the user’s privileges. This flaw enables sandbox escape and can be chained into operating-system-level remote code execution by modifying components used to enforce Cursor’s sandbox so that subsequent commands execute unsandboxed. The issue is fixed in Cursor 3.0.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary file writes outside the intended workspace boundary with the privileges of the logged-in user. This breaks Cursor’s sandbox assumptions and can be used to overwrite security-relevant binaries, shell startup files, or other sensitive user-writable targets. In practical attack chains, the vulnerability enables sandbox escape, persistence, unauthorized modification of local configuration, and non-sandboxed remote code execution on the host operating system. Depending on the developer environment, compromise can also expose source code, credentials, local secrets, and access to connected development or SaaS resources available to the user account.

Mitigation

If you can’t patch tonight, do this now.

Until patched, avoid running Cursor agents against untrusted repositories, untrusted MCP-connected content, or other attacker-influenced inputs that can drive agent file operations. Restrict agent permissions where possible, isolate development activity in disposable environments, and monitor for unexpected writes outside the workspace, especially modifications to sandbox-related helpers, shell initialization files, and other persistence-relevant locations. Defensive controls should ensure symlinks are resolved before approval is shown and that any operation resolving outside the workspace is blocked or prominently warned.

Remediation

Patch, then assume compromise.

Upgrade Cursor to version 3.0 or later, which fixes the vulnerable path validation and symlink handling logic. The write path should resolve and validate the final canonical destination before any approval or write occurs, and writes should be denied rather than allowed when canonicalization fails. Security-sensitive helper components and sandbox enforcement artifacts should be restored from a trusted installation after patching if compromise is suspected.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AnysphereCursorapplication
FAQ

Frequently asked questions

Is CVE-2026-50549 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-50549 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-50549?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-50549.
Is there a patch for CVE-2026-50549?
Upgrade Cursor to version 3.0 or later, which fixes the vulnerable path validation and symlink handling logic. The write path should resolve and validate the final canonical destination before any approval or write occurs, and writes should be denied rather than allowed when canonicalization fails.
What products are affected by CVE-2026-50549?
Anysphere Cursor.
How severe is CVE-2026-50549?
CVE-2026-50549 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 1.0% (62nd percentile) as of Sep 25, 2026.
Activity feed

Recent activity

32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+17 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity11Community discussion across Reddit, Mastodon, and other social sources.