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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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-50529DataEase is an open source data visualization and analysis t…8.7
- CVE-2026-5053NoMachine External Control of File Path Arbitrary File Delet…7.1
- CVE-2026-50530DataEase is an open source data visualization and analysis t…7.1
- 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-50545Fission is an open-source, Kubernetes-native serverless fram…9.9
- 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-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-50555Angular is a development platform for building mobile and de…6.1
- CVE-2026-50556Angular is a development platform for building mobile and de…6.1
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
