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.
AII-1001-956513 sources β
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
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