Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-54131: Cursor allow list bypass in auto-run mode via backtick or command substitution

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

Summary

CVE-2025-54131 affects Cursor, a code editor built for programming with AI, in versions below 1.3. When a user has switched from the default approval-for-every-terminal-call setting to an allowlist, an attacker can bypass the allow list in auto-run mode using a backtick (`) or $(cmd) and execute arbitrary commands without user approval. The flaw can be triggered when chained with indirect prompt injection.

Mitigation

This is fixed in version 1.3.