CVE-2026-50548
Last modified
CVE-2026-50548 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default, and the sandbox grants write access to the command's working directory. EPSS estimates a 0.52% chance of exploitation in the next 30 days.
Description
Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default, and the sandbox grants write access to the command's working directory. A flaw was identified in how the agent could modify the working_directory parameter, which could cause the sandbox to include writable paths outside the intended workspace. A malicious agent could set working_directory to a sensitive location and 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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Anysphere | Cursor | < 3.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-50548?
How severe is CVE-2026-50548?
How do I fix CVE-2026-50548?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-50538LibVNCClient is a library for easy implementation of a VNC c…8.8
- CVE-2026-5054NoMachine External Control of File Path Local Privilege Esca…7.8
- CVE-2026-50540Kata Containers is an open source project focusing on a stan…9.6
- CVE-2026-50544NortheBridge/luminalshine is a Sunshine-compatible game stre…6.3
- CVE-2026-50545Fission is an open-source, Kubernetes-native serverless fram…9.9
- CVE-2026-50547InvoicePlane is a self-hosted open source application for ma…7.5
- CVE-2026-50549Cursor is a code editor built for programming with AI. Prior…9.8
- CVE-2026-5055NoMachine Uncontrolled Search Path Element Local Privilege E…7.8
- CVE-2026-50550Snipe-IT is an IT asset/license management system. Prior to …5.8
- CVE-2026-50551SiYuan is an open-source personal knowledge management syste…9.9
- CVE-2026-50552Koel is a free, open-source music streaming solution. Prior …6.3
- CVE-2026-50553Note Mark is an open-source note-taking application. Prior t…8.6
Are you affected by CVE-2026-50548?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
