Skip to content
MediumNews

Critical Cursor bug could turn routine Git into RCE

Published
Record updated
View JSON

Summary

Security researchers at Novee Security disclosed CVE-2026-26268, a flaw in the Cursor IDE affecting versions prior to 2.5. A malicious bare repository with a planted pre-commit hook can be executed when Cursor's AI agent runs a routine git checkout, letting an attacker run code on the developer's machine. NVD rates the flaw 9.9 critical, while Cursor assigned a CVSS score of 8.0.

Mitigation

The flaw is patched in Cursor version 2.5.