Skip to content
AgentProv

2025-11-04 · 2025-Q4

GitHub Copilot Filename Prompt Injection

Primary layerL2 Instruction

Who actually said "do this"?

The question layer 2 asks, and failed here.
Fixable
Architectural
Vendor response
Not a vulnerability
In the wild
No
Actor
Attacker

Target

GitHub Copilot Chat (Agent mode)

Impact

Arbitrary instruction execution via extremely long filenames containing prompt injections; Microsoft declined to fix

Root cause

Copilot appends file names to user prompts without sanitization

Sources

Catalog

Cite this: AgentProv incident record: GitHub Copilot Filename Prompt Injection (2025-11-04). https://agentprov.com/incidents/2025-11-04-github-copilot-filename-prompt-injection