Potential Information Leakage via Mermaid Diagram
Medium5.9CVE-2025-61589 · Published Oct 2, 2025
## Summary Cursor supports a tool called Mermaid to render diagrams. While testing it was observed that mermaid allows embedding images which then get rendered by Cursor in the chat box. An attacker can use this to exfiltrate sensitive information to a third-party attacker controlled server through an image fetch after successfully performing a prompt injection. A malicious model (or hallucination/backdoor) might also trigger this exploit at will. Some additional bypasses not covered in the [initial fix to this issue](https://github.com/cursor/cursor/security/advisories/GHSA-43wj-mwcc-x93p) were discovered and reported in this advisory. ## Impact This issue requires prompt injection from malicious data (web, image upload, source code) in order to exploit. In that case, it can send sensitive information to an attacker-controlled external server. ## Remediation All remote images are removed from the mermaid diagram before rendering.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Cursor Product | < 1.7 | 1.7 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
More Cursor advisories
All Cursor| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Nov 32025 | Sensitive File Protection Bypass - Path Manipulation Using Backslashes on Windows | High8.8 | 2.0 |
| Oct 22025 | Cursor CLI Agent - Sensitive File Overwrite Bypass | High7.1 | 2025.09.17-25b418f |
| Oct 22025 | Cursor IDE - Sensitive File Overwrite Bypass | High8.0 | 1.7 |
| Oct 22025 | Remote Code Execution in Cursor CLI via Cursor Agent MCP OAuth2 Communication | High8.8 | 2025.09.17-25b418f |
| Oct 22025 | Arbitrary code execution Permissive CLI Config in Cursor CLI | High8.8 | 2025.09.17-25b418f |
| Oct 22025 | RCE via .code-workspace files using Prompt Injection | High7.5 | 1.7 |