Hidden pull request comments make Copilot Chat leak private code (CamoLeak)

Hidden pull request comments make Copilot Chat leak private code (CamoLeak)

GitHub's own image proxy, designed as a security control, was used to carry private repository contents out character by character.

8 October 2025DemonstratedHijacked by content
GitHub Copilot Chat · GitHub (Microsoft) · Global
What happened
Responsibly disclosed vulnerability (CVSS 9.6) demonstrated by a researcher; no reported in-the-wild exploitation. Legit Security placed instructions in hidden comments in a pull request description. When another user asked Copilot Chat about the pull request, Copilot followed the instructions with that user's permissions, searched their private repositories for material such as AWS keys and undisclosed vulnerability descriptions, and rendered it as a sequence of images. Each image used a pre-generated, signed URL for GitHub's Camo image proxy representing one character, so the victim's browser fetched them in order and the attacker could reconstruct the data, bypassing GitHub's content security policy.
Response
GitHub fixed the issue on 14 August 2025 by disabling image rendering in Copilot Chat; details were published on 8 October 2025.
Discovered by
Omer Mayraz, Legit Security; reported via HackerOne.
Who was affected
GitHub users with access to private repositories who used Copilot Chat on attacker-authored pull requests
Patterns
Instructions hidden in contentData left the systemCredentials exposedWorked around a safeguard
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab