CVE-2026-26268

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:26

Type Values Removed Values Added
Summary
  • (es) Cursor es un editor de código diseñado para programar con IA. El escape de la sandbox mediante la escritura de la configuración .git era posible en versiones anteriores a la 2.5. Un agente malicioso (es decir, inyección de prompt) podría escribir en configuraciones .git protegidas de forma inadecuada, incluyendo los git hooks, lo que podría causar RCE fuera de la sandbox la próxima vez que se activen. No se requería interacción del usuario, ya que Git ejecuta estos comandos automáticamente. Corregido en la versión 2.5.

18 Feb 2026, 17:59

Type Values Removed Values Added
References () https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r - () https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r - Vendor Advisory
First Time Anysphere cursor
Anysphere
CPE cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*

13 Feb 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-13 17:16

Updated : 2026-06-17 10:26


NVD link : CVE-2026-26268

Mitre link : CVE-2026-26268

CVE.ORG link : CVE-2026-26268


JSON object : View

Products Affected

anysphere

  • cursor
CWE
CWE-862

Missing Authorization