Vulnerability · Published Jun 15, 2026 · Assigned by GitHub_M
CVE-2026-48124Cursor Desktop sandbox escape via Claude hook configuration
High 8.5
In plain English
A high-severity code injection in cursor from cursor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities).
Official description
Cursor is a code editor built for programming with AI. In versions prior to 3.0.0, the Cursor Desktop could execute workspace-defined Claude hook commands from .claude/settings.local.json without dedicated user approval. A malicious workspace or agent-created file could configure hooks that run local commands in the user's context when an agent turn ends. This could allow sandbox escape, persistence across turns, local data access, or follow-on compromise. This issue has been fixed in version 3.0.0.
Affected products (as reported)
Weakness: CWE-829, CWE-94 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/cursor/cursor/security/advisories/GHSA-pc9j-3qc2-95wv x_refsource_CONFIRM