CVE-2026-50549: Cursor Desktop sandbox escape via symlink and failed path canonicalization

Published Jun 25, 2026
·
Updated

Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default. Before a Write, the agent canonicalizes the target path to confirm it stays inside the workspace, but when canonicalization fails it falls back to the original path and writes without approval. A malicious agent can create an in-workspace symlink that points outside the workspace and force canonicalization to fail — either because the target does not exist or because read permission is removed from the path — so the agent writes through the symlink to an arbitrary location without approval. A malicious agent could write arbitrary files outside the workspace under the user's privileges. This enables non-sandboxed Remote Code Execution — for example by overwriting the cursorsandbox helper so later commands run unsandboxed — with no user interaction beyond a benign prompt. This vulnerability is fixed in 3.0.

Affected Software

2 affected components
Cursor Cursor Desktop<3.0
anysphere Cursor<3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cursor Desktop to a version that resolves this vulnerability.

    Fixed in 3.0
  2. Configuration

    Ensure Cursor agent terminal commands run in the sandbox (non-sandboxed agent terminal command execution must be disabled) to prevent sandbox escape via symlink and failed path canonicalization.

    Cursor Desktop sandboxing for agent terminal commands = enabled (default in affected versions: prior to 3.0)

Event History

Jun 25, 2026
CVE Published
via MITRE·06:47 PM
Data Sourced
via MITRE·06:47 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-50549?

CVE-2026-50549 has a risk rating of 80, indicating it presents a significant security concern.

2

How do I fix CVE-2026-50549?

To mitigate CVE-2026-50549, update Cursor Desktop to version 3.0 or later where the vulnerability is addressed.

3

What type of vulnerability is CVE-2026-50549?

CVE-2026-50549 is classified as a sandbox escape vulnerability related to symlink and failed path canonicalization.

4

Who is affected by CVE-2026-50549?

Users of Cursor Desktop versions prior to 3.0 are affected by CVE-2026-50549.

5

What impact does CVE-2026-50549 have on users?

CVE-2026-50549 may allow unauthorized access to the system by escaping the sandbox environment, leading to potential data breaches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203