GHSA-c3xh-98xp-6qhf: githubtoplanguages Command Injection Vulnerability

HIGH
CWE-78
Published
Advisory Summary

GHSA-c3xh-98xp-6qhf is a HIGH command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting githubtoplanguages libraries in the GitHub Actions ecosystem. The issue involves command injection via issue title in discord notification workflow. Remediation is available by upgrading affected packages to version 1.1.4.

GHSA-c3xh-98xp-6qhf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c3xh-98xp-6qhf
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product githubtoplanguages
Package Ecosystem GitHub Actions
Published Date
Last Updated

How to Fix GHSA-c3xh-98xp-6qhf

To remediate this vulnerability, upgrade all affected githubtoplanguages dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gouef/githubtoplanguages fixed: 1.1.4
Upgrade gouef/githubtoplanguages to 1.1.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gouef/githubtoplanguages

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c3xh-98xp-6qhf, inspect your project dependencies for githubtoplanguages:

inspect dependencies for gouef/githubtoplanguages

Analyze the terminal output to locate any version of githubtoplanguages in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In githubtoplanguages, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A GitHub Actions workflow is vulnerable to command injection through the issue title. The workflow is triggered when an issue is opened or closed, and it directly inserts `github.event.issue.title` into a Bash variable assignment. If an issue title contains command substitution syntax, Bash evaluates it during the workflow run. ### Details The vulnerable workflow is: `.github/workflows/discord-issue.yml` The issue title is directly interpolated into a Bash script: ```bash ISSUE_TITLE="${{ github.event.issue.title || github.event.pull_request.title }}" ``` Because GitHub Actions expressions are expanded before Bash executes the script, an attacker-controlled issue title containing command substitution syntax can be evaluated by the shell. In the original workflow, the resulting value is then included in a Discord notification payload: ```bash curl -H "Content-Type: application/json" \ -X POST \ -d "{\"username\": \"GitHub Bot\", \"content\": \"${STATUS} created by **${AUTHOR}**: **${ISSUE_TITLE}**\n🔗 ${ISSUE_URL}\"}" \ "$DISCORD_WEBHOOK" ``` ### PoC For safety, I reproduced this only in my fork. I did not trigger the original repository’s Discord webhook. I kept the vulnerable Bash assignment unchanged and replaced the Discord webhook request with `echo` statements to observe the result safely. Test issue title: ```text title: $(whoami) ``` Observed workflow log: ```text ISSUE_TITLE=title: runner ``` This confirms that `$(whoami)` was executed on the GitHub Actions runner before the value would be sent to Discord. ### Impact Any user who can open an issue may be able to execute shell commands on the GitHub Actions runner. In practice, this means an attacker could create an issue with a crafted title, cause the workflow to execute a shell command, and have the command output included in the Discord notification content. This can be used to manipulate Discord notifications, spoof trusted GitHub bot messages, or repeatedly trigger unwanted notifications. More importantly, the command runs in a workflow environment where a Discord webhook secret is configured. Depending on repository settings and workflow permissions, this may put workflow secrets or other environment data at risk. ### Suggested Fix Do not insert issue titles directly into Bash scripts. Pass the title through an environment variable instead: ```yaml env: ISSUE_TITLE: ${{ github.event.issue.title }} run: | issue_title="$ISSUE_TITLE" ``` Also avoid `eval`, unquoted variable expansion, or shell execution patterns involving user-controlled issue content.

GHSA-c3xh-98xp-6qhf Affected githubtoplanguages Versions

1 component(s)
Fixed Versions:
1.1.4
Product / Package Ecosystem Affected Versions Fixed Version
gouef/githubtoplanguages
GitHub Actions
< 1.1.4
1.1.4

References

Frequently Asked Questions

What is GHSA-c3xh-98xp-6qhf?
GHSA-c3xh-98xp-6qhf is a security vulnerability in githubtoplanguages involving Command Injection via Issue Title in Discord Notification Workflow under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which githubtoplanguages versions are affected?
Affected versions include releases prior to 1.1.4 across affected packages: gouef/githubtoplanguages.
What version fixes GHSA-c3xh-98xp-6qhf?
Upgrading to 1.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gouef/githubtoplanguages affected?
Yes, gouef/githubtoplanguages is affected in releases prior to 1.1.4. Upgrade your dependency to 1.1.4 or later.
What CWE is associated with GHSA-c3xh-98xp-6qhf?
GHSA-c3xh-98xp-6qhf is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check GitHub Actions dependencies for GHSA-c3xh-98xp-6qhf?
Run the dependency tree command: 'inspect dependencies for gouef/githubtoplanguages'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c3xh-98xp-6qhf",
  "modified" : "2026-06-19T22:10:31Z",
  "published" : "2026-06-19T22:10:31Z",
  "aliases" : [ ],
  "summary" : "githubtoplanguages: Command Injection via Issue Title in Discord Notification Workflow",
  "details" : "### Summary\n\nA GitHub Actions workflow is vulnerable to command injection through the issue title.\n\nThe workflow is triggered when an issue is opened or closed, and it directly inserts `github.event.issue.title` into a Bash variable assignment. If an issue title contains command substitution syntax, Bash evaluates it during the workflow run.\n\n\n### Details\n\nThe vulnerable workflow is:\n\n`.github/workflows/discord-issue.yml`\n\nThe issue title is directly interpolated into a Bash script:\n\n```bash\nISSUE_TITLE=\"${{ github.event.issue.title || github.event.pull_request.title }}\"\n```\n\nBecause GitHub Actions expressions are expanded before Bash executes the script, an attacker-controlled issue title containing command substitution syntax can be evaluated by the shell.\n\nIn the original workflow, the resulting value is then included in a Discord notification payload:\n\n```bash\ncurl -H \"Content-Type: application/json\" \\\n  -X POST \\\n  -d \"{\\\"username\\\": \\\"GitHub Bot\\\", \\\"content\\\": \\\"${STATUS} created by **${AUTHOR}**: **${ISSUE_TITLE}**\\n🔗 ${ISSUE_URL}\\\"}\" \\\n  \"$DISCORD_WEBHOOK\"\n```\n\n### PoC\n\nFor safety, I reproduced this only in my fork. I did not trigger the original repository’s Discord webhook.\n\nI kept the vulnerable Bash assignment unchanged and replaced the Discord webhook request with `echo` statements to observe the result safely.\n\nTest issue title:\n\n```text\ntitle: $(whoami)\n```\n\nObserved workflow log:\n\n```text\nISSUE_TITLE=title: runner\n```\n\nThis confirms that `$(whoami)` was executed on the GitHub Actions runner before the value would be sent to Discord.\n\n### Impact\n\nAny user who can open an issue may be able to execute shell commands on the GitHub Actions runner.\n\nIn practice, this means an attacker could create an issue with a crafted title, cause the workflow to execute a shell command, and have the command output included in the Discord notification content. This can be used to manipulate Discord notifications, spoof trusted GitHub bot messages, or repeatedly trigger unwanted notifications.\n\nMore importantly, the command runs in a workflow environment where a Discord webhook secret is configured. Depending on repository settings and workflow permissions, this may put workflow secrets or other environment data at risk.\n\n### Suggested Fix\n\nDo not insert issue titles directly into Bash scripts.\n\nPass the title through an environment variable instead:\n\n```yaml\nenv:\n  ISSUE_TITLE: ${{ github.event.issue.title }}\nrun: |\n  issue_title=\"$ISSUE_TITLE\"\n```\n\nAlso avoid `eval`, unquoted variable expansion, or shell execution patterns involving user-controlled issue content.",
  "severity" : [ {
    "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" : [ {
    "package" : {
      "ecosystem" : "GitHub Actions",
      "name" : "gouef/githubtoplanguages"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gouef/githubtoplanguages/security/advisories/GHSA-c3xh-98xp-6qhf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gouef/githubtoplanguages/commit/157840482e592bd4f8e0617539e73cdbef26f1ac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gouef/githubtoplanguages"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-19T22:10:31Z",
    "nvd_published_at" : null
  }
}