Skip to content
HighVulnerabilityLLM-specific

CVE-2026-31854: Cursor command execution via indirect prompt injection from visited websites

Identifier
CVE-2026-31854
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2026-31854 affects Cursor, a code editor built for programming with AI, in versions prior to 2.0. A visited website containing maliciously crafted instructions can cause the model to follow them, and combined with a bypass of the command whitelist mechanism, commands may be executed automatically without the user's explicit intent. The weakness is classified as CWE-78, OS Command Injection, with a CVSS 4.0 base score of 8.7 (HIGH) assigned by GitHub, Inc.

Mitigation

Fixed in 2.0.