PromptPwnd: issue text can hijack AI agents in GitHub Actions to leak repository secrets
Aikido Security showed that GitHub Actions and GitLab CI/CD workflows that insert untrusted issue, pull-request or commit text into prompts for AI agents holding privileged tokens can be hijacked by prompt injection. In a proof of concept against the issue-triage workflow of Google's own gemini-cli repository, run on a private fork with test credentials, a malicious issue made the Gemini agent run gh issue edit and write tokens into the issue body. Aikido said Google patched it within four days and that at least five Fortune 500 companies were affected by the pattern.
Aikido said some vulnerable workflows can be triggered by any external user who files an issue. It warned that Claude Code Actions and OpenAI Codex become exposed when their default protections, such as running only for users with write permission, are disabled, and released open-source Opengrep rules to detect the pattern.
What would have stopped it
Keep untrusted issue and PR text out of prompts for CI agents, and give those agents read-only, minimal tokens.
Guardrails
- G1 Least privilege Failed Agents held high-privilege repository and cloud tokens while processing untrusted issue text.
- G2 Human confirmation Failed Workflows ran the agents’ privileged tool calls automatically, with no human review.
- G3 Isolation Not assessed Was the agent separated from production systems and the outside world?
- G4 Instruction integrity Failed Agent followed instructions hidden in a malicious issue.
- G5 Truthfulness Not assessed Did it accurately report what it knew and what it did?
- G6 Limits Not assessed Was there a cap on rate, spend, volume or scale?
- G7 Oversight Not assessed Could a responsible human see what it was doing and stop it in time?
- G8 Recovery Not assessed Could the damage be undone?
Sources
-
“Google’s own Gemini CLI repository was affected by this vulnerability pattern, and Google patched it within four days of Aikido’s responsible disclosure.”
-
“At least five Fortune 500 companies have been affected so far, and indicators suggest many more may unknowingly be exposed.”
-
“Aikido Security said that Google had patched the issue in Gemini CLI upon being informed; Google did not immediately respond to a request for information about this.”
Confidence 92% comes from these sources alone. How we score
History
- 15 Oct 2026Entered in the register with 3 sources