{"id":"CVE-2024-41127","aliases":["CVE-2024-41127"],"related":[],"kind":"vulnerability","state":"published","title":"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.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Monkeytype es una prueba de mecanografía minimalista y personalizable. Monkeytype es vulnerable a la ejecución de canalización envenenada mediante inyección de código en su flujo de trabajo de GitHub ci-failure-comment.yml, lo que permite a los atacantes obtener acceso de escritura a solicitudes de extracción. El flujo de trabajo ci-failure-comment.yml se activa cuando se completa el flujo de trabajo de Monkey CI. Cuando se ejecute, descargará un artefacto cargado por el flujo de trabajo desencadenante y asignará el contenido del artefacto ./pr_num/pr_num.txt a la variable de flujo de trabajo steps.pr_num_reader.outputs.content. No se valida que la variable sea en realidad un número y luego se interpola en un script JS que permite a un atacante cambiar el código a ejecutar. Este problema conduce al acceso de escritura de las solicitudes de extracción. Esta vulnerabilidad se solucionó en 24.30.0.","source":"nvd"}],"published":"2024-08-02T14:46:21.941Z","modified":"2026-06-17T07:47:19.813Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"}],"cwes":["CWE-74","CWE-94"],"affected":[{"ranges":[{"version":"< 24.30.0","status":"affected"}],"vendor":"monkeytypegame","product":"monkeytype","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"24.30.0","status":"affected"}],"vendor":"monkeytype","product":"monkeytype","cpe":"cpe:2.3:a:monkeytype:monkeytype:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"24.30.0"}],"vendor":"monkeytype","product":"monkeytype","cpe":"cpe:2.3:a:monkeytype:monkeytype:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-wcjf-5464-4wq9","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/monkeytypegame/monkeytype/commit/29627fd0d5f152e2da59671987090ea0a5c29874","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-167_monkeytype","tags":["exploit","third-party-advisory","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-08-02T16:48:39.585Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41127","url":"https://www.cve.org/CVERecord?id=CVE-2024-41127","licence":"CVE Terms of Use","modified":"2024-08-02T16:52:08.440Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41127","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41127","licence":"Public domain","modified":"2026-06-17T07:47:19.813Z"}],"updatedAt":"2026-11-25T22:58:43.561Z","epss":{"score":0.00875,"percentile":0.60024,"date":"2026-12-01T12:00:22.000Z"}}