Cybersecurity researchers have found an oblique immediate injection flaw in GitLab’s synthetic intelligence (AI) assistant Duo that might have allowed attackers to steal supply code and inject untrusted HTML into its responses, which may then be used to direct victims to malicious web sites.
GitLab Duo is a synthetic intelligence (AI)-powered coding assistant that permits customers to write down, overview, and edit code. Constructed utilizing Anthropic’s Claude fashions, the service was first launched in June 2023.
However as Legit Safety discovered, GitLab Duo Chat has been vulnerable to an oblique immediate injection flaw that allows attackers to “steal supply code from personal initiatives, manipulate code options proven to different customers, and even exfiltrate confidential, undisclosed zero-day vulnerabilities.”
Immediate injection refers to a category of vulnerabilities frequent in AI programs that allow menace actors to weaponize giant language fashions (LLMs) to control responses to customers’ prompts and lead to undesirable conduct.
Oblique immediate injections are much more trickier in that as an alternative of offering an AI-crafted enter straight, the rogue directions are embedded inside one other context, equivalent to a doc or an internet web page, which the mannequin is designed to course of.
Latest research have proven that LLMs are additionally weak to jailbreak assault methods that make it potential to trick AI-driven chatbots into producing dangerous and unlawful data that disregards their moral and security guardrails, successfully obviating the necessity for rigorously crafted prompts.
What’s extra, Immediate Leakage (PLeak) strategies could possibly be used to inadvertently reveal the preset system prompts or directions that are supposed to be adopted by the mannequin.
“For organizations, which means that personal data equivalent to inner guidelines, functionalities, filtering standards, permissions, and consumer roles will be leaked,” Pattern Micro mentioned in a report printed earlier this month. “This might give attackers alternatives to take advantage of system weaknesses, probably resulting in knowledge breaches, disclosure of commerce secrets and techniques, regulatory violations, and different unfavorable outcomes.”
![]() |
PLeak assault demonstration – Credential Extra / Publicity of Delicate Performance |
The most recent findings from the Israeli software program provide chain safety agency present {that a} hidden remark positioned anyplace inside merge requests, commit messages, subject descriptions or feedback, and supply code was sufficient to leak delicate knowledge or inject HTML into GitLab Duo’s responses.
These prompts could possibly be hid additional utilizing encoding tips like Base16-encoding, Unicode smuggling, and KaTeX rendering in white textual content so as to make them much less detectable. The shortage of enter sanitization and the truth that GitLab didn’t deal with any of those situations with any extra scrutiny than it did supply code may have enabled a foul actor to plant the prompts throughout the positioning.

“Duo analyzes your complete context of the web page, together with feedback, descriptions, and the supply code — making it weak to injected directions hidden anyplace in that context,” safety researcher Omer Mayraz mentioned.
This additionally signifies that an attacker may deceive the AI system into together with a malicious JavaScript bundle in a chunk of synthesized code, or current a malicious URL as protected, inflicting the sufferer to be redirected to a faux login web page that harvests their credentials.
On prime of that, by benefiting from GitLab Duo Chat’s means to entry details about particular merge requests and the code adjustments within them, Legit Safety discovered that it is potential to insert a hidden immediate in a merge request description for a venture that, when processed by Duo, causes the personal supply code to be exfiltrated to an attacker-controlled server.
This, in flip, is made potential owing to its use of streaming markdown rendering to interpret and render the responses into HTML because the output is generated. In different phrases, feeding it HTML code through oblique immediate injection may trigger the code section to be executed on the consumer’s browser.
Following accountable disclosure on February 12, 2025, the problems have been addressed by GitLab.
“This vulnerability highlights the double-edged nature of AI assistants like GitLab Duo: when deeply built-in into growth workflows, they inherit not simply context — however danger,” Mayraz mentioned.
“By embedding hidden directions in seemingly innocent venture content material, we have been in a position to manipulate Duo’s conduct, exfiltrate personal supply code, and exhibit how AI responses will be leveraged for unintended and dangerous outcomes.”
The disclosure comes as Pen Take a look at Companions revealed how Microsoft Copilot for SharePoint, or SharePoint Brokers, could possibly be exploited by native attackers to entry delicate knowledge and documentation, even from information which have the “Restricted View” privilege.
“One of many main advantages is that we are able to search and trawl by huge datasets, such because the SharePoint websites of huge organisations, in a brief period of time,” the corporate mentioned. “This may drastically enhance the probabilities of discovering data that will likely be helpful to us.”
The assault methods observe new analysis that ElizaOS (previously Ai16z), a nascent decentralized AI agent framework for automated Web3 operations, could possibly be manipulated by injecting malicious directions into prompts or historic interplay information, successfully corrupting the saved context and resulting in unintended asset transfers.
“The implications of this vulnerability are notably extreme provided that ElizaOSagents are designed to work together with a number of customers concurrently, counting on shared contextual inputs from all members,” a gaggle of lecturers from Princeton College wrote in a paper.

“A single profitable manipulation by a malicious actor can compromise the integrity of your complete system, creating cascading results which are each troublesome to detect and mitigate.”
Immediate injections and jailbreaks apart, one other important subject ailing LLMs in the present day is hallucination, which happens when the fashions generate responses that aren’t primarily based on the enter knowledge or are merely fabricated.
In accordance with a brand new research printed by AI testing firm Giskard, instructing LLMs to be concise of their solutions can negatively have an effect on factuality and worsen hallucinations.
“This impact appears to happen as a result of efficient rebuttals typically require longer explanations,” it mentioned. “When compelled to be concise, fashions face an not possible alternative between fabricating brief however inaccurate solutions or showing unhelpful by rejecting the query completely.”