{
  "id": "CVE-2025-54135",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54135",
  "published_at": "2025-08-05T00:11:07.363Z",
  "title": "Cursor Agent is vulnerable to prompt injection via MCP Special Files",
  "vendor": "cursor",
  "product": "cursor",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.6,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "allinsthon/CVE-2025-54135",
      "url": "https://github.com/allinsthon/CVE-2025-54135",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:44:13.198Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "anntsmart/CVE-2025-54135",
      "url": "https://github.com/anntsmart/CVE-2025-54135",
      "created_at": "2025-08-04T09:56:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-07-12T08:25:46Z"
    },
    {
      "repo": "hn1e13/test-mcp",
      "url": "https://github.com/hn1e13/test-mcp",
      "created_at": "2025-08-30T00:41:29Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-09-23T13:09:31Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "cursor",
        "product": "cursor",
        "ranges": [
          "\u003c 1.3.9"
        ],
        "fixed_in": [
          "1.3.9"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cursor to 1.3.9 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/cursor/cursor/security/advisories/GHSA-4cxx-hrm3-49rm"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
