An AI agent exploited a Snowflake CI bug within days

A script-injection flaw in a GitHub Actions workflow in Snowflake's snowflake-connector-net repository let an unauthenticated user run shell commands by opening a GitHub issue with a crafted title. The flaw came from a June 18, 2026 commit, which listed GitHub Copilot Autofix as a co-author. The commit removed existing input sanitization and replaced it with direct string expansion in a shell script.
On June 23, an autonomous offensive-security agent built by Wiz found the flaw while scanning public repositories. It exploited the flaw for a bug-bounty submission, exfiltrating Jira credentials that gave read access to some of Snowflake's engineering, security-compliance and bug-bounty projects. Snowflake patched the workflow the day Wiz reported it and rotated the Jira credentials the next day. According to Snowflake, audit logs show Wiz was the only third party to reach the exposed data during the roughly five-day window, and Wiz says it deleted what it collected.
How the flaw was introduced isn't settled. Wiz later said it isn't sure Copilot Autofix introduced the error. A person may have introduced it, with Autofix failing to catch it. The incident was reported in August, including Wiz's update.
Two points hold either way. Workflows that expand untrusted input, such as issue titles, PR descriptions or branch names, directly into shell commands are exploitable. An automated scanner can now find and prove that kind of bug within days. Changes to input handling or shell execution in CI need careful review whoever wrote them, and untrusted values should go through environment variables rather than being expanded inline.
Correction, October 22, 2026: an earlier version of this item said an AI coding tool introduced the bug. Wiz has since said it isn't sure, and a person may have introduced it.