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

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-95651
Quick facts
Category
Security and cyberattacks
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
Data leak, Prompt injection
AI systems
GitLab Duo

Sources and evidence

Sources not yet published

This record was researched and written by the Index from original reporting. Its sources are still being verified by an editor, and they are listed here once that check is complete. Until then the record carries no reviewer.

How sources are verifiedSuggest a source for this incident