{"id":"CVE-2024-41127","published":"2024-08-02T14:46:21Z","modified":"2024-08-02T16:52:08Z","title":"Monkeytype is vulnerable to Poisoned Pipeline Execution through Code Injection in its `ci-failure-comment.yml` GitHub…","vendor":"monkeytypegame","product":"monkeytype","tier":"tail","description":{"text":"Monkeytype is a minimalistic and customizable typing test. Monkeytype is vulnerable to Poisoned Pipeline Execution through Code Injection in its ci-failure-comment.yml GitHub Workflow, enabling attackers to gain pull-requests write access. The ci-failure-comment.yml workflow is triggered when the Monkey CI workflow completes. When it runs, it will download an artifact uploaded by the triggering workflow and assign the contents of ./pr_num/pr_num.txt artifact to the steps.pr_num_reader.outputs.content WorkFlow variable. It is not validated that the variable is actually a number and later it is interpolated into a JS script allowing an attacker to change the code to be executed. This issue leads to pull-requests write access. This vulnerability is fixed in 24.30.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01297,"percentile":0.70456,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-wcjf-5464-4wq9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/monkeytypegame/monkeytype/commit/29627fd0d5f152e2da59671987090ea0a5c29874","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-167_monkeytype","tags":["x_refsource_MISC"]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":14.09},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.88}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-30","earliestUrl":"https://github.com/pvharmo2/gha-lab-83342297e0","repos":[{"name":"pvharmo2/gha-lab-83342297e0","url":"https://github.com/pvharmo2/gha-lab-83342297e0","stars":0,"created":"2026-08-30"}]},"first":{"date":"2026-08-30","source":"PoC-in-GitHub","url":"https://github.com/pvharmo2/gha-lab-83342297e0"},"provenance":"source"},"vendorSlug":"monkeytypegame","affectedVersions":[{"vendor":"monkeytypegame","product":"monkeytype","versions":["< 24.30.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-02T16:48:39.585270Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-38940","exploited":false,"provenance":"source"}}