# CVE-2024-41127: 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.

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-02T14:46:21.941Z
- Modified: 2026-06-17T07:47:19.813Z
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- monkeytypegame monkeytype: < 24.30.0
- monkeytype monkeytype: before 24.30.0

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-167_monkeytype> (exploit, third-party-advisory)
- <https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-wcjf-5464-4wq9> (vendor-advisory)
- <https://github.com/monkeytypegame/monkeytype/commit/29627fd0d5f152e2da59671987090ea0a5c29874> (patch)

## Sources

- CVE List: [CVE-2024-41127](https://www.cve.org/CVERecord?id=CVE-2024-41127), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-41127](https://nvd.nist.gov/vuln/detail/CVE-2024-41127), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41127 · Whole record: https://cve.day/CVE-2024-41127.json · Rebuilt by cve.day 2026-11-25T22:58:43.561Z
