Skip to content
Submit incident
AII-1001-95651
Well documentedThree or more independent publishers report the core facts.

GitLab Duo Prompt Injection Vulnerability Exposes Source Code

Security researchers discovered an indirect prompt injection vulnerability in GitLab Duo that could allow attackers to exfiltrate source code, manipulate code suggestions, and leak confidential vulnerabilities through the AI-powered coding assistant.

21 May 2025 Β· Anthropic Β· Security and cyberattacks
21 May 2025
AII-1001-956513 sources ↓
Quick facts
Category
Security and cyberattacks
Source
Ars Technica
Date
21 May 2025
Drafted by
Raidu Incident Detection

What happened

Security researchers from Legit Security discovered an indirect prompt injection vulnerability in GitLab Duo, an AI-powered coding assistant integrated into GitLab and based on Anthropic's Claude models.

Attackers could exploit the flaw to exfiltrate private source code, manipulate AI-generated code suggestions, and leak confidential zero-day vulnerabilities through seemingly innocuous inputs.

Classification

Category
Security and cyberattacks
Industry
Digital security
Harm status
Potential harm
Intent
Intentional
Timing
Post-deployment
Harmed
Business
Failure modes
Prompt injection, Data leak
AI systems
GitLab Duo

Sources and evidence

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

Ars Technica
Researchers cause GitLab AI developer assistant to turn safe code malicious
23 May 2025
Security Boulevard
Remote Prompt Injection in GitLab Duo Leads to Source Code Theft
22 May 2025
IT Security News - cybersecurity, infosecurity news
GitLab Duo Vulnerability Exploited to Inject Malicious Links and Steal Source Code - IT Security News
23 May 2025