Saturday, November 7, 2026

Cursor AI Extension Flaw Exposes Developer Tokens to Credential Theft

Security researchers at LayerX have uncovered a high-severity vulnerability in the popular AI-powered development environment, Cursor. Dubbed “CursorJacking,” this flaw carries a CVSS score of 8.2 and exposes developers to immediate credential theft. Any installed extension can silently access a user’s API keys and session tokens without requiring special permissions or user interaction.

Standard security practices dictate that applications store sensitive secrets in protected environments, such as the macOS Keychain or Windows Credential Manager. Cursor bypasses this critical safeguard by storing authentication credentials in a local, unencrypted SQLite database.

Exploitation Flow (Source: Layer X)
Exploitation Flow (Source: Layer X)

The database is located at a predictable filepath on the user’s local machine. Crucially, the application fails to enforce access control boundaries between its extensions and this database file. This architectural oversight means any extension can directly read the database to extract sensitive data, regardless of its declared permissions.

How the Attack Works

Exploiting this vulnerability requires incredibly low effort from an attacker. The attack flow follows a straightforward execution path:

  1. An attacker publishes a seemingly harmless extension, such as a custom theme or coding utility.
  2. A developer installs the extension without receiving any security warnings or prompts for permission.
  3. The malicious extension automatically queries the local SQLite database.
  4. The extension extracts the plaintext API keys and session tokens from the file.
  5. The stolen data is silently transmitted to an external server controlled by the attacker.

The lack of access control creates a powerful attack primitive that extends well beyond the Cursor application itself. Since developers use powerful API keys to drive their coding environments, the fallout can be catastrophic. The primary impacts include:

  • Financial losses from attackers running up large billing charges on stolen OpenAI or Anthropic keys.
  • Exposure of sensitive source code, metadata, and proprietary data from prior AI prompts.
  • Total compromise of third-party integrations and unauthorized access to backend services.
  • Complete user impersonation enables further downstream attacks.

LayerX officially disclosed this vulnerability to Cursor on February 1, 2026. On February 5, Cursor responded by stating that extensions share the same trust boundary as any other local application. The vendor argued that it remains the user’s responsibility to vet the extensions they choose to install thoroughly.

As of late April 2026, Cursor has not released a patch or architectural fix for this issue. Security experts strongly recommend that Cursor update its design to enforce strict isolation between extensions and handle all sensitive credentials exclusively through secure, system-level keychains. Until a patch is deployed, developers must exercise extreme caution when downloading third-party add-ons.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Hackers Exploit WordPress Core RCE Vulnerability in Over 240,000 Attack Attempts

Attackers have launched more than 240,000 exploit attempts against...

Hackers Use Fake GitHub Security Tools to Spread Malware, Infecting Over 2,000 Computers

Threat actors are distributing malware through GitHub repositories masquerading...

Insignary Releases Free Insignary-Chk Tool to Detect PHP2Shell and Node2Shell Exposure

Toronto, Canada, November 6th, 2026, CyberNewswire Free, read-only scanner helps...

Dark Project Ransomware Gang Claims 38 Victims Across 8 Countries, Targeting Healthcare and Manufacturing

Dark Project, an emerging financially motivated ransomware operation, has...

Hackers Use Fake Streaming Apps to Spread Mirax Android Malware and Steal Bank Accounts

Hackers are using streaming app lures to distribute Mirax....

Related Articles

Recent News