CVE-2025-61589 Details
Description
Cursor is a code editor built for programming with AI. In versions 1.6 and below, Mermaid (a to render diagrams) 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. 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. Some additional bypasses not covered in the initial fix to this issue were discovered, see GHSA-43wj-mwcc-x93p. This issue is fixed in version 1.7.
A vulnerability in Cursor code editor versions through 1.6 allows for unauthorized information leakage via the Mermaid diagram tool. The issue arises from Mermaid's capability to embed images, which Cursor renders in the chat box. An attacker could exploit this feature to exfiltrate sensitive data to a third-party server after executing a prompt injection. This vulnerability requires the injection of malicious prompts, potentially through web data, image uploads, or source code. Additionally, a compromised AI model could exploit this issue at will.
Users can update to Cursor version 1.7, where this vulnerability has been addressed. In this patched version, all remote images are removed from Mermaid diagrams before rendering.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-43wj-mwcc-x93p | [email protected] | Not Applicable |
| https://github.com/cursor/cursor/security/advisories/GHSA-xw2x-252g-97w2 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anysphere cursor | < 1.7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2025 | Initial Analysis | [email protected] |
| Oct 3, 2025 | New CVE Received | [email protected] |