Skip to content
HighVulnerabilityLLM-specific

CVE-2025-54135: Cursor writes in-workspace files without user approval

Identifier
CVE-2025-54135
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.1%

Summary

Cursor, an AI-assisted code editor, allows writing files inside the workspace without user approval in versions below 1.3.9. Approval is required to edit an existing dotfile but not to create a new one, so when a sensitive file such as .cursor/mcp.json does not yet exist, an attacker can chain an indirect prompt injection to hijack the context, write the settings file, and trigger RCE on the victim without approval.

Mitigation

Fixed in version 1.3.9.