ChatGPT-GitHub Connector Bug Risks Exposure of Private Repo Secrets

A newly disclosed flaw in ChatGPT’s GitHub integration could allow attackers to steal secrets from private repositories. The flaw was described in a report released October 15, 2026. It involves tricking an AI agent into acting on hidden instructions stored in a public repository, then using the agent’s trusted access to make changes to private repositories via GitHub Actions. Key credentials could then be exfiltrated without the user’s approval.

Security researcher Sunil Tripathy detailed the issue, describing how the attack works across two GitHub accounts. The attacker hosts a public repo that contains concealed prompts. The victim connects ChatGPT to GitHub, giving it broad repository permissions. When ChatGPT reviews the attacker’s public repo, it obeys the hidden instructions and ends up writing workflows into a private repo controlled by the victim—something the victim never explicitly permitted.

The malicious workflow, once committed, can trigger automatically via GitHub Actions and send secrets—like a dummy credential named “AUDIT_CANARY” in Tripathy’s test—to an external server. The victim never opened or approved these cross-repository writes.

Technical Details & Wider Implications

Tripathy characterizes this as a case of **indirect prompt injection**, where instructions arrive via content consumed by the assistant, rather than through direct user input. Previous research (AgentFlayer) showed similar dangers when AI tools process malicious documents or linked external data.

An unresolved ambiguity concerns the level of permissions ChatGPT currently has in its GitHub connector. The official documentation states that the standard ChatGPT GitHub app is *read-only*, while pushing edits should require tools like Codex. The fact that writes allegedly happened under ChatGPT access contradicts that setup, making clarity around permissions and how workflows are executed crucial.

The vulnerability was reported on September 4. Demonstrations of secret theft took place by September 28, though OpenAI reportedly classified the issue as “out of scope” on October 14. Tripathy says the issue remained reproducible as of October 15. These actions, though serious, are so far based on security researcher findings—not on confirmed vendor evaluations or patches.

What You Should Do Now

  • Limit the scope of GitHub access granted to ChatGPT. Only give permissions strictly necessary for your workflows.
  • Inspect any unexpected workflow commits in your private repositories. These may betray unauthorized cross-repo activity.
  • If secrets were possibly exposed, rotate them—change them so any compromised values no longer grant access.
  • Review Git history for hidden instructions or suspicious workflow references—attackers may hide logic in custom actions.

Until official statements confirm the exact permissions and integrations involved, one cannot say for sure how widespread this risk is. If OpenAI’s standard GitHub app truly remains read-only for most users, many will be safe unless misconfigured. Still, the fact that this scenario tested negative only when permissions were restricted to a single repository suggests configurations matter deeply.

Even when tools are meant for code review, AI agents are increasingly able to execute actions. The blurring line between “analysis” and “action” demands careful guardrails. This flaw underlines how connected tools—if overly trusted—can become attack vectors. Going forward, expect heightened scrutiny on AI integrations with code platforms, more permission constraints, and probably vendor responses clarifying or tightening GitHub connector behaviors.