CursorGHSA-x2vq-h6v6-jhc6
Cursor CLI Agent - Sensitive File Overwrite Bypass
Fix: upgrade to 2025.09.17-25b418f or later
Summary
A vulnerability in the way Cursor CLI Agent protects its sensitive files (i.e. */.cursor/cli.json) allows attackers to modify the content of the files through prompt injection, thus achieving remote code execution.
Impact
A prompt injection can now lead to full RCE through modifying sensitive files on case-insensitive filesystems
Remediations
The sensitive file checks were fixed to respect the local filesystem.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Cursor CLI Product | < 2025.09.17-25b418f | 2025.09.17-25b418f |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-178