CVE-2026-58502 githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow
Attackers can execute arbitrary commands on GitHub Actions runners via malicious issue titles, potentially exposing secrets and spoofing notifications.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-58502?
CVE-2026-58502 is a high-severity command injection vulnerability in gouef githubtoplanguages, published on 15 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
githubtoplanguages generates a user's top GitHub languages as an SVG. The .github/workflows/discord-issue.yml workflow runs when an issue is opened or closed and interpolates github.event.issue.title directly into the Bash assignment for ISSUE_TITLE before shell parsing. An issue title containing shell command-substitution syntax can therefore execute commands on the GitHub Actions runner before the title is included in the Discord notification sent through DISCORD_WEBHOOK. Successful exploitation can manipulate or spoof trusted bot notifications and may expose the Discord webhook secret or other workflow environment data, depending on repository permissions. This issue is fixed by commit 6bf9c3a9cb66c937b9047ca266b3d02f2bb11027.
Weakness: CWE-78
Which versions are affected by CVE-2026-58502?
1 open source package ship an affected version, including gouef/githubtoplanguages.
| Package | Affected | Fixed in |
|---|---|---|
gouef/githubtoplanguages GitHub Actions | All versions | 1.1.4 |
How do I fix CVE-2026-58502?
Upgrade gouef/githubtoplanguages to 1.1.4 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-58502 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58502 exists.
Sources
Also known as GHSA-c3xh-98xp-6qhf.