Skip to content
Submit incident
AII-1002-13207
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

Cursor AI Coding Tool Vulnerable to Prompt Injection Attack

Cybersecurity firm HiddenLayer reported that Cursor, an AI coding tool widely used by Coinbase and others, is vulnerable to a "CopyPasta License Attack" that can inject malicious prompts into code repositories through hidden comments in common developer files. The attack could potentially allow hackers to spread malware, exfiltrate data, or disrupt development environments across an organization.

5 September 2025 Β· Coinbase Β· Security and cyberattacks
5 September 2025
AII-1002-132074 sources ↓
Quick facts
Category
Security and cyberattacks
Country
United States
Source
Cointelegraph
Date
5 September 2025
Drafted by
Raidu Incident Detection

What happened

Cybersecurity firm HiddenLayer reported on September 5, 2025, that Cursor and other AI coding tools (Windsurf, Kiro, and Aider) are vulnerable to a "CopyPasta License Attack" that can inject malicious prompts into code repositories.

The attack hides prompt injections in common developer files such as LICENSE.txt and README.md files within markdown comments, allowing the injected instructions to direct AI coding tools without user knowledge and spread across entire codebases.

Reported impact

HiddenLayer warned that injected code could stage a backdoor, silently exfiltrate sensitive data, introduce resource-draining operations that cripple systems, or manipulate critical files to disrupt development and production environments, all while remaining buried inside files to avoid immediate detection.

Index analysis

Coinbase's engineering team had identified Cursor as the preferred tool for most of its developers and stated it had been used by every Coinbase engineer by February 2025, making the company and others using these tools potentially vulnerable to the attack.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
United States
Harm status
Potential harm
Intent
Intentional
Timing
Unknown
Harm types
Economic or property
Harmed
Business
Failure modes
Prompt injection, Manipulation or dark pattern
Consequences
None recorded
AI systems
Cursor

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

Cointelegraph
Coinbase's preferred AI coding tool can be hijacked by new virus
5 September 2025
cryptonews.com
AI Coding Tool Used by Coinbase Exposes Firms to Self-Spreading Malware
6 September 2025
FinanceFeeds
New Virus Can Exploit Coinbase's Favorite AI Coding Tool
6 September 2025
CoinDesk
AI News: Coinbase's Go-To AI Coding Tool Found Vulnerable to 'CopyPasta' Exploit
6 September 2025
Jul 2026Aurora ransomware operator used Cursor agent to plan attacks on 20+ organizationsConfirmedSecurity and cyberattacksgambit.securitycloudsek.comApr 2026Anthropic's Mythos AI model raises cybersecurity concernsUnder investigationSecurity and cyberattacksYahoo! Finanzait.finance.yahoo.comApr 2026Russian-speaking hackers exploited Cursor AI to breach seven companiesWell documentedSecurity and cyberattacksReutersBildSΓΌddeutsche Zeitung+2Dec 2025Cursor AI code editor 0-day allows code execution from poisoned repositoriesWell documentedSecurity and cyberattacksDark ReadingCrypto BriefingIt's FOSS+2Apr 2025Security researchers bypass safety controls in major chatbots to generate uranium enrichment instructionsWell documentedSecurity and cyberattackscybernews.comfuturism.comhiddenlayer.com