SecurityContext

CVE-2025-54130: Cursor - Remote Code Execution

  • Cve: CVE-2025-54130
  • Name: Cursor - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary code remotely by writing to sensitive editor files without user approval.
  • Remediation: Update to version 1.3.9 or later.
  • Vulnerability type: remote_code_execution
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00372
  • Epss percentile: 0.31546
  • Assignee: [email protected]
  • Published at: 2025-08-05T01:15:41Z
  • Age in days: 476
  • Modified at: 2026-06-17T09:39:30Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-54130
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-285Improper Authorization
NVD-CWE-Other—

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://github.com/cursor/cursor/security/advisories/GHSA-vqv7-vq92-x87fnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
anysphere:cursor< 1.3.9nonvd/v1/products/anysphere/cursor

Projects

RepositoryLink kindsIndexedUrl
cursor/cursorsecurity_advisoryyes/v1/repositories/cursor/cursor

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts