CVE-2025-54130
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-05

Last updated on: 2025-08-25

Assigner: GitHub, Inc.

Description
Cursor is a code editor built for programming with AI. Cursor allows writing in-workspace files with no user approval in versions less than 1.3.9. If the file is a dotfile, editing it requires approval but creating a new one doesn't. Hence, if sensitive editor files, such as the .vscode/settings.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-05
Last Modified
2025-08-25
Generated
2026-05-27
AI Q&A
2025-08-05
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
anysphere cursor to 1.3.9 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-285 The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
CWE-NVD-CWE-Other
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-54130 is a vulnerability in Cursor versions prior to 1.3.9 where the editor allows writing new dotfiles (hidden files starting with a dot) in the workspace without user approval. While editing existing dotfiles requires approval, creating new ones does not. An attacker can exploit this by chaining a prompt injection vulnerability to create sensitive configuration files like .vscode/settings.json if they don't already exist. This lets the attacker hijack the editor context and execute arbitrary code (RCE) on the victim's machine without their consent. [1]


How can this vulnerability impact me? :

This vulnerability can lead to an attacker executing arbitrary code on your machine without your approval. They can create or modify sensitive editor configuration files to hijack the editor context, potentially changing your default shell or running malicious commands. This impacts the confidentiality, integrity, and availability of your system, allowing unauthorized access and control. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart