{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41127 exists.","fix":"No fix has been published for CVE-2024-41127 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-41127 is a high-severity code injection vulnerability in monkeytypegame monkeytype, published on 2 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-41127 and fix it if it is affected.\n\nWhat it is: CVE-2024-41127 is a high-severity code injection vulnerability in monkeytypegame monkeytype, published on 2 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-41127 exists.\n\nAffected product: monkeytypegame monkeytype. No package-level version data is available, so check the vendor advisory linked from the reference page.\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/CVE-2024-41127/ (Markdown: https://insights.sbomify.com/CVE-2024-41127/index.md)","id":"CVE-2024-41127","markdown":"https://insights.sbomify.com/CVE-2024-41127/index.md","name":"CVE-2024-41127","record":{"aliases":["GHSA-wcjf-5464-4wq9"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Typing test web app","requires_auth":"none","summary":"Attackers can inject code into a GitHub workflow to gain write access to pull requests in the Monkeytype typing test application.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"monkeytype","vendor":"monkeytype"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-08-30","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-30T16:02:01Z","kind":"github_poc","ref":"https://github.com/pvharmo2/gha-lab-83342297e0","stars":0,"title":"Authorized security-research lab reproducing CVE-2024-41127 (GHSA-wcjf-5464-4wq9): poisoned pipeline execution via artifact-controlled code injection in ci-failure-comment.yml. Snapshot of monkeytypegame/monkeytype @ deeea0f."}],"tier":"weaponised"},"has_fix":false,"headline":"Code injection in monkeytype","id":"CVE-2024-41127","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Action Dispatch has possible ReDoS vulnerability in query parameter filtering","id":"CVE-2024-41128"},"packages":[],"prev":{"headline":"Out-of-bounds read when decoding SNMP messages in Contiki-NG","id":"CVE-2024-41126"},"products":["monkeytype"],"published":"2024-08-02","related":[{"cvss_score":7.1,"headline":"Monkeytype vulnerable to stored XSS in approve quotes page","id":"CVE-2025-66563","kev_date_added":null,"published":"2025-12-04"},{"cvss_score":2.4,"headline":"Monkeytype Vulnerable to Self-XSS on loading saved custom text","id":"CVE-2025-59838","kev_date_added":null,"published":"2025-09-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["monkeytypegame"]},"summary":"Attackers can inject code into a GitHub workflow to gain write access to pull requests in the Monkeytype typing test application.","url":"https://insights.sbomify.com/CVE-2024-41127/"}