{"answers":{"affected":"1 open source package ship an affected version, including Tiryoh/actions-mkdocs.","exploited":"There is no known exploitation of GHSA-6p2j-742g-835f in the wild and no public exploit code.","fix":"Upgrade Tiryoh/actions-mkdocs to 0.25.0 or later.","what":"GHSA-6p2j-742g-835f is a command injection vulnerability in Tiryoh/actions-mkdocs, published on 4 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-6p2j-742g-835f and fix it if it is affected.\n\nWhat it is: GHSA-6p2j-742g-835f is a command injection vulnerability in Tiryoh/actions-mkdocs, published on 4 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-6p2j-742g-835f in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Tiryoh/actions-mkdocs (GitHub Actions): affected all versions; fixed in 0.25.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-6p2j-742g-835f/ (Markdown: https://insights.sbomify.com/GHSA-6p2j-742g-835f/index.md)","id":"GHSA-6p2j-742g-835f","markdown":"https://insights.sbomify.com/GHSA-6p2j-742g-835f/index.md","name":"GHSA-6p2j-742g-835f","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions workflow","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands on CI runners by injecting shell metacharacters into GitHub issue titles processed by the workflow.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n\nExternal input from `github.event.issue.title` is used unsafely in a shell command in `.github/workflows/release-candidate.yaml`, allowing command injection during workflow execution.\n\n### Details\n\nIn `.github/workflows/release-candidate.yaml`, the issue title is interpolated directly into a shell command:\n\n```\nexport VERSION=$(echo ${{ github.event.issue.title }} | sed -E 's/Release v?([0-9\\.]*)/\\1/g')\n```\n\nBecause the issue title is attacker-controlled and is embedded directly into a shell command, shell metacharacters such as command substitution (`$()`) and command separators (`;`) can be interpreted by the shell.\n\nAlthough the workflow checks that the title starts with `Release `, this condition can still be satisfied by a maliciously crafted input.\n\n### PoC\n\n1. Create or edit an issue with the following title:\n\n   ```\n   Release v1.2.3 $(whoami)\n   ```\n\n2. Trigger the workflow that processes the issue.\n\n3. Observe that the injected command is executed on the runner.\n\nThe workflow logs show that `$(whoami)` is evaluated and its output (`runner`) appears in the command result, confirming that attacker-controlled input is executed within the shell.\n\n\u003cimg width=\"633\" height=\"380\" alt=\"스크린샷 2026-03-27 오후 8 33 43\" src=\"https://github.com/user-attachments/assets/90b38dab-8c53-4a13-8302-158ac5acf051\" /\u003e\n\n### Impact\n\nThis vulnerability allows command injection in the GitHub Actions runner through attacker-controlled issue titles. An attacker may be able to execute arbitrary commands within the context of the affected workflow job.\n\nDepending on the workflow configuration (such as permissions and available secrets), successful exploitation could lead to:\n\n* Unauthorized command execution in the CI environment\n* Misuse of the `GITHUB_TOKEN`\n* Modification of repository state, release artifacts, or other workflow outputs\n\nIf the repository is public and allows untrusted users to create or reopen issues that trigger the workflow, this may be exploitable by external users.\n\nThis issue is limited to the repository's internal workflow configuration and does not directly affect downstream users of the published `actions-mkdocs` GitHub Action.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"actions-mkdocs: Command Injection via issue title in internal GitHub Actions workflow","id":"GHSA-6p2j-742g-835f","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"GitHub Actions","fixed":["0.25.0"],"introduced":["0"],"last_affected":[],"package":"Tiryoh/actions-mkdocs","purl":null,"source":"GHSA-6p2j-742g-835f"}],"products":null,"published":"2026-04-04","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can execute arbitrary commands on CI runners by injecting shell metacharacters into GitHub issue titles processed by the workflow.","url":"https://insights.sbomify.com/GHSA-6p2j-742g-835f/"}