{
  "id": "CVE-2026-31854",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31854",
  "published_at": "2026-03-11T17:11:52.028Z",
  "title": "Cursor Affected by Arbitrary Code Execution via  Prompt Injection and Whitelist Bypass",
  "vendor": "cursor",
  "product": "cursor",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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. Prior to 2.0 ,if a visited website contains maliciously crafted instructions, the model may attempt to follow them in order to “assist” the user. When combined with a bypass of the command whitelist mechanism, such indirect prompt injections could result in commands being executed automatically, without the user’s explicit intent, thereby posing a significant security risk. This vulnerability is fixed in 2.0.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "cursor",
        "product": "cursor",
        "ranges": [
          "\u003c 2.0"
        ],
        "fixed_in": [
          "2.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cursor to 2.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/cursor/cursor/security/advisories/GHSA-hf2x-r83r-qw5q"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
