PoC Monitor
← All CVEs
CVE-2025-54135published 5 Aug 2025 00:11 UTCData: JSON · API

Cursor

Cursor Agent is vulnerable to prompt injection via MCP Special Files

Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions below 1.3.9, If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive MCP files, such as the .cursor/mcp.json file don't already exist in the workspace, an attacker can chain a indirect prompt injection vulnerability to hijack the context to write to the settings file and trigger RCE on the victim without user approval. This is fixed in version 1.3.9.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by NVD · CWE-78
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

cursor cursor
  • < 1.3.9

Fixed in 1.3.9

Mitigation

Upgrade cursor to 1.3.9 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published5 Aug 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 pending · 1 informational · 1 not a PoC

Pending 1
RepositoryCreatedStarsAssessment
allinsthon/CVE-2025-54135 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 1
RepositoryCreatedStarsAssessment
anntsmart/CVE-2025-54135 4 Aug 2025 −14 h 0 Informational · write-up
Not a PoC 1
RepositoryCreatedStarsAssessment
hn1e13/test-mcp 30 Aug 2025 +25 d 0 Not a PoC · unrelated

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.