LayerX Says Cursor Extensions Can Steal API Keys From Unprotected SQLite Database

· Original article ↗

Summary

LayerX researchers say Cursor stores API keys and session tokens in an unprotected SQLite database accessible to extensions. Cursor reportedly considers this within the user’s trust boundary; the issue remained unfixed as of April 28, 2026.

Key points

  • LayerX researchers report that Cursor stores API keys and session tokens in a local SQLite database without access controls.
  • The database is located at ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb.
  • According to the researchers, an installed malicious extension can query the database and silently exfiltrate credentials without user interaction or visible alerts.
  • The report rates the issue high severity, with a CVSS score of 8.2.
  • LayerX says Cursor acknowledged the behavior but described defining the trust boundary as the user's responsibility.
  • The issue was reported as unfixed as of April 28, 2026.

Article Details

Vulnerability Types
  • Unprotected local credential storage
  • Missing access control between Cursor and its extensions
Severity
High (CVSS 8.2)
Exploitation Status
reported
Exploit Availability
unknown
Patch Status
unavailable
Workarounds
  • Vet every Cursor extension before installing it.

MITRE ATT&CK

Vendors

Products

Related Articles