CVE-2025-54131

CVE-2025-54131 is a medium-severity vulnerability in Anysphere Cursor with a CVSS 3.x base score of 6.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.

Key facts

Description

Cursor is a code editor built for programming with AI. In versions below 1.3, an attacker can bypass the allow list in auto-run mode with a backtick (`) or $(cmd). If a user has swapped Cursor from its default settings (requiring approval for every terminal call) to an allowlist, an attacker can execute arbitrary command execution outside of the allowlist without user approval. An attacker can trigger this vulnerability if chained with indirect prompt injection. This is fixed in version 1.3.

Frequently asked questions

What is CVE-2025-54131?
Cursor is a code editor built for programming with AI. In versions below 1.3, an attacker can bypass the allow list in auto-run mode with a backtick (`) or $(cmd). If a user has swapped Cursor from its default settings (requiring approval for every terminal call) to an allowlist, an attacker can execute arbitrary command execution outside of the allowlist without user approval. An attacker can trigger this vulnerability if chained with indirect prompt injection. This is fixed in version 1.3.
How severe is CVE-2025-54131?
CVE-2025-54131 has a CVSS 3.x base score of 6.4, rated medium severity. It is exploitable over network with high attack complexity, requires high privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2025-54131 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (38th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-54131?
CVE-2025-54131 affects Anysphere Cursor. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-54131?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-54131 have an EU (EUVD) identifier?
Yes. CVE-2025-54131 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-23408.
When was CVE-2025-54131 published?
CVE-2025-54131 was published on 2025-08-01 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Anysphere Cursor

All CVEs affecting Anysphere Cursor →

Other CWE-77 (Command Injection) vulnerabilities

Browse all CWE-77 (Command Injection) vulnerabilities →