A poisoned GitHub issue makes a coding agent push a credential to a public gist
What we found
The agent triages new issues with an MCP server that exposes repository, file and gist tools. An issue body carried instructions to read the deployment config and publish it as a gist for debugging. The agent followed them, because the gist tool was available and no step required approval.
Impact
Anyone who can open an issue can exfiltrate secrets the agent can read.
How to fix it
Remove the gist tool from the triage agent, scope its token to read-only issue access, and require human approval for any tool that publishes content outside the organization.







