Incident report

GitHub Copilot Chat CamoLeak Hidden PR Comment Secret Exfiltration via Camo Proxy

Disclosed publicly in October 2025 by Legit Security researcher Omer Mayraz, CamoLeak (rated CVSS 9.6) demonstrated zero-click exfiltration of private repository source code and secrets from GitHub Copilot Chat. Attackers embedded invisible instructions inside HTML/markdown comments within a pull request description; when a developer queried Copilot Chat on the PR, the assistant inherited the developer's private-repo access and followed the hidden prompt. To bypass GitHub's Content Security Policy, the payload instructed Copilot to encode stolen secrets bit-by-bit across pre-generated image URLs routed through GitHub's own trusted Camo image proxy (`camo.githubusercontent.com`). GitHub remediated the attack vector by disabling image rendering inside Copilot Chat responses.

Incident record

Reported
Severity
Critical
Vector
Indirect Prompt Injection
Affected system type
Repository-Integrated AI Coding Chat Assistants
Reference URI
https://www.legitsecurity.com/blog/camoleak-critical-github-copilot-vulnerability-leaks-private-source-code

Inspect in Interactive Incidents Hub

Defensive lesson

Disable dynamic external image and markdown link rendering in privileged coding assistants and strip hidden HTML comments from untrusted PR context.

Research citation

Referenced techniques