Skip to content
MediumNewsLLM-specific

Cursor IDE: Arbitrary Data Exfiltration Via Mermaid (CVE-2025-54132)

Published
Record updated
View JSON

Summary

Researcher Johann Rehberger reports that Cursor, an AI code editor, renders Mermaid diagrams and will issue requests to external servers when an image is embedded, letting data leave its sandbox without human confirmation. Through indirect prompt injection, an attacker can hijack Cursor and exfiltrate data such as user memories or API keys stored in a configuration file, which are embedded as URL query parameters in an image link. The issue is tracked as CVE-2025-54132.