GitHub Copilot Chat Vulnerability Enabling Data Exfiltration via Image Proxy Abuse
A critical vulnerability was discovered in GitHub Copilot Chat that could have allowed attackers to exfiltrate private source code and sensitive secrets from repositories by exploiting the platform’s AI assistant and image proxying service. The flaw, identified by Legit Security researcher Omer Mayraz, involved a sophisticated attack chain that combined remote prompt injection with a bypass of GitHub’s content security policy. Attackers could embed hidden prompts within pull request comments or other repository content, which Copilot Chat would process without proper isolation or validation. This allowed the attacker to manipulate Copilot’s responses and assemble signed image links that leveraged GitHub’s Camo image proxy service to transmit stolen data outside the platform. The exploit, dubbed "CamoLeak," demonstrated that even advanced AI-powered developer tools can be manipulated to leak confidential information, including passwords and private keys, with minimal user awareness. The proof-of-concept attack showed that the exfiltration channel was subtle enough to evade detection by both users and GitHub’s monitoring systems. GitHub Copilot Chat’s context awareness, which enables it to read repository files, pull requests, and other workspace artifacts, was a key factor in the attack’s success, as it provided the AI assistant with access to sensitive data that could be extracted through manipulated prompts. Upon responsible disclosure via HackerOne, GitHub responded by disabling image rendering in Copilot Chat and patching the vulnerability as of August 14. The incident highlights the growing risks associated with integrating AI agents into software development workflows, especially when such agents have broad access to sensitive project data. Security experts noted that while the attack was limited in the amount of data it could exfiltrate at once, the potential impact was significant due to the nature of the information at risk. The case underscores the importance of rigorous security validation for AI-driven features and the need for continuous monitoring of new attack vectors as AI adoption accelerates in development environments. GitHub’s swift response and remediation efforts were commended, but the event serves as a cautionary tale for organizations relying on AI-powered coding assistants. The vulnerability also illustrates the creative lengths attackers may go to bypass security controls, turning legitimate platform features like image proxies into covert data exfiltration channels. The research community continues to scrutinize AI integrations for similar weaknesses, emphasizing the need for secure-by-design principles in next-generation developer tools. Organizations are advised to review their use of AI assistants, ensure prompt application of security updates, and educate developers about the risks of prompt injection and related attacks. The incident has prompted broader discussions about the balance between AI functionality and security, especially as more platforms embed intelligent agents into core workflows. Ultimately, the GitHub Copilot Chat vulnerability demonstrates both the promise and peril of AI in software development, reinforcing the need for vigilance and proactive defense measures.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
Further coverage highlights exposure of private repository information
Additional reporting emphasized that the vulnerability exposed information from private repositories through GitHub Copilot Chat, reinforcing the scope of the data-leak risk. This represented continued public dissemination of the same underlying vulnerability details rather than a separate incident.
Media reports detail private code leakage risk in GitHub Copilot Chat
Multiple security news outlets reported that the GitHub Copilot Chat flaw could leak sensitive information and private source code from repositories, including through image-based prompt injection techniques. These reports amplified the disclosure and described the potential impact to users of the tool.
Legit Security discloses the 'CamoLeak' GitHub Copilot flaw
Legit Security publicly disclosed a critical prompt-injection vulnerability dubbed 'CamoLeak' affecting GitHub Copilot Chat that could expose sensitive data from private repositories via malicious image-based inputs. The disclosure established the core technical issue later covered by multiple outlets.
GitHub patches CamoLeak by disabling image rendering in Copilot Chat
GitHub remediated the CamoLeak vulnerability in August 2025 by disabling image rendering in Copilot Chat. The change blocked the image-based exfiltration path that abused GitHub's Camo proxy to leak sensitive data from private repositories.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
7 references tracked. Mallory keeps watching after this page renders.
Hackers Exploit GitHub Copilot Flaw to Exfiltrate Sensitive Data
cybersecuritynews.com
Open sourcePrivate repository info exposed by GitHub Copilot Chat vulnerability
scworld.com
Open sourceGitHub Copilot 'CamoLeak' AI Attack Exfiltrates Data
darkreading.com
Open sourceGitHub Copilot Chat Flaw Let Private Code Leak Via Images
govinfosecurity.com
Open sourceGitHub Copilot Chat Flaw Let Private Code Leak Via Images
bankinfosecurity.com
Open sourceGitHub Copilot prompt injection flaw leaked sensitive data from private repos
csoonline.com
Open sourceCamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code
legitsecurity.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


