{
 "public_id": "AIR-2025-0077",
 "incident_id": "2025-08-cursor-mermaid-exfiltration",
 "date_disclosed": "2025-08-04",
 "date_occurred": null,
 "title": "Cursor IDE: arbitrary data exfiltration via Mermaid diagram image rendering (CVE-2025-54132)",
 "class": "responsible_disclosure",
 "attack_surface": "coding_agent",
 "initial_vector": "indirect_prompt_injection_source_code",
 "agent_capability_abused": [
  "diagram_rendering",
  "file_read",
  "memory_read",
  "markdown_rendering",
  "external_resource_fetch"
 ],
 "target_product": "Cursor IDE",
 "target_vendor": "Anysphere / Cursor",
 "autonomy_level": "semi_autonomous",
 "impact_realized": false,
 "impact_type": [
  "data_exfiltration",
  "credential_theft"
 ],
 "blast_radius": "Cursor users before v1.3",
 "cve": [
  "CVE-2025-54132"
 ],
 "taxonomy": {
  "owasp_asi": [
   "ASI01",
   "ASI02"
  ],
  "mitre_atlas": [],
  "labels": [
   "mermaid",
   "image_markdown_exfiltration",
   "csp_bypass",
   "zero_click",
   "rendering_exfil"
  ]
 },
 "defense_present": "Cursor sandbox and image domain restrictions, bypassed via Mermaid's external image loading",
 "defense_bypassed": true,
 "fix_shipped": "resolved 2025-07-07, shipped in Cursor 1.3 on 2025-07-29",
 "primary_sources": [
  "https://embracethered.com/blog/posts/2025/cursor-data-exfiltration-with-mermaid/",
  "https://embracethered.com/blog/posts/"
 ],
 "verified_quote": "An attacker can use Mermaid to exfiltrate sensitive information to a third-party attacker controlled server when performing a prompt injection.",
 "confidence": "high",
 "notes": "Month of AI Bugs 2025. | Merged from duplicate id `2025-08-cursor-mermaid-exfil`. Also reported as: 'Cursor IDE: arbitrary data exfiltration via Mermaid diagram rendering (CVE-2025-54132)'.",
 "risk_category": "security_fraud",
 "risk_secondary": [
  "privacy"
 ],
 "risk_subcategory": "Prompt Injection",
 "risk_sub_secondary": [
  "Credential & Secret Theft"
 ],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "Cursor rendered the Mermaid diagram, fetching the attacker URL",
 "vector_family": "indirect_prompt_injection",
 "vector_detail": "indirect_prompt_injection_source_code",
 "guardrail_kind": [
  "sandbox_isolation"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [
   "CVE-2025-54132"
  ],
  "ghsa": []
 },
 "primary_asi": "ASI01",
 "agent_framework": "cursor",
 "model_provider": "unknown",
 "model_name": "",
 "detection_mechanism": "external_researcher",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "data_exfiltration_channels",
 "eai_domain": "privacy",
 "eai_secondary": [
  "credential_theft",
  "confused_deputy"
 ],
 "eai_reason": "impact rule: data_exfiltration_channels",
 "asi_curated": [
  "ASI01"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI01 | added ASI02 (impact=tool_misuse)",
 "submitted_by": "EAI Internal"
}