Skip to content
Heist/ feed
Back to feed
High

githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-58502
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 14:03 UTC · Revision 1

Source evidence

githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow

core-osv · Original source

Published 15 Sept 2026, 17:37 UTC

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.

osv:CVE-2026-58502
Complete source record
{
  "id": "0e6cc6e60a8c057792520fe2f201605ddcecb4419dc12f4dcd63826b422131e8",
  "url": "https://osv.dev/vulnerability/CVE-2026-58502",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow",
    "summary": "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.",
    "evidence": "osv:CVE-2026-58502",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-58502",
      "aliases": [
        "CVE-2026-58502",
        "GHSA-c3xh-98xp-6qhf"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gouef/githubtoplanguages",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6bf9c3a9cb66c937b9047ca266b3d02f2bb11027"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6bf9c3a9cb66c937b9047ca266b3d02f2bb11027"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6bf9c3a9cb66c937b9047ca266b3d02f2bb11027"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.1.3",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0-rc1",
            "v1.1.0",
            "v1.1.0-beta1",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.3-rc3",
            "v1.0.3-rc2",
            "v1.0.3-rc1",
            "v1.0.2-rc3",
            "v1.0.2",
            "v1.0.2-rc2",
            "v1.0.2-rc1",
            "v1.0.1",
            "v1.0.0-rc1",
            "v1.0.0",
            "v0.1.0-beta1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58502.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.859158133Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58502.json",
        "https://github.com/gouef/githubtoplanguages/security/advisories/GHSA-c3xh-98xp-6qhf",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-58502",
        "https://github.com/gouef/githubtoplanguages/commit/6bf9c3a9cb66c937b9047ca266b3d02f2bb11027"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58502.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-58502",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503383,
  "published_at": "2026-09-15T17:37:34.738+00:00"
}