{
 "id": "CVE-2025-54135",
 "description": "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.",
 "published": "2025-08-05",
 "last_modified": "2026-06-17",
 "vuln_status": "Analyzed",
 "cna": "security-advisories@github.com",
 "cvss": {
  "version": "3.1",
  "score": 9.8,
  "severity": "CRITICAL",
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "source": "nvd@nist.gov"
 },
 "cwe": [
  "CWE-78",
  "CWE-829"
 ],
 "products": [
  {
   "vendor": "anysphere",
   "product": "cursor",
   "versions_affected": "< 1.3.9",
   "fixed_in": "1.3.9",
   "product_id": "cursor"
  }
 ],
 "category": "product",
 "surface": [
  "prompt_injection",
  "code_execution",
  "supply_chain"
 ],
 "kev": null,
 "fix": {
  "status": "fixed",
  "version": "1.3.9",
  "url": null
 },
 "references": [
  {
   "url": "https://github.com/cursor/cursor/security/advisories/GHSA-4cxx-hrm3-49rm",
   "source": "security-advisories@github.com",
   "tags": [
    "Mitigation",
    "Vendor Advisory"
   ]
  }
 ],
 "related_agents": [],
 "related_incidents": [
  "TR-2026-011"
 ],
 "match": {
  "tests": [
   "A:cpe",
   "B:vocabulary"
  ],
  "terms": [
   "cursor:anysphere:cursor",
   "prompt injection"
  ]
 },
 "status": "candidate",
 "note": null,
 "reviewer": null,
 "checked_on": null,
 "retrieved_on": "2026-10-25"
}