# CVE-2026-58502: githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T22:10:31.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-c3xh-98xp-6qhf
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gouef githubtoplanguages: < 6bf9c3a9cb66c937b9047ca266b3d02f2bb11027
- gouef/githubtoplanguages (GitHub Actions): before 1.1.4

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/gouef/githubtoplanguages/security/advisories/GHSA-c3xh-98xp-6qhf> (exploit, web)
- <https://github.com/gouef/githubtoplanguages/commit/6bf9c3a9cb66c937b9047ca266b3d02f2bb11027>
- <https://github.com/gouef/githubtoplanguages/commit/157840482e592bd4f8e0617539e73cdbef26f1ac> (web)
- <https://github.com/gouef/githubtoplanguages> (package)

## Sources

- CVE List: [CVE-2026-58502](https://www.cve.org/CVERecord?id=CVE-2026-58502), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-c3xh-98xp-6qhf](https://github.com/advisories/GHSA-c3xh-98xp-6qhf), CC-BY-4.0, modified 2026-09-17
- NVD: [CVE-2026-58502](https://nvd.nist.gov/vuln/detail/CVE-2026-58502), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-58502 · Whole record: https://cve.day/CVE-2026-58502.json · Rebuilt by cve.day 2026-11-25T22:59:38.629Z
