← Back to search

CVE-2026-118762

9.3 CRITICALpublic exploit available

Published 2026-10-29 · Updated 2026-10-29

AI risk analysis

Summary
The GitHub Actions workflow .github/workflows/fix-formatting.yml in Monkeytype prior to v26.43.0 executes untrusted forked code with elevated repository write permissions due to improper handling of the GITHUB_TOKEN, allowing an attacker to run arbitrary code and exfiltrate credentials.
Exploitability
Exploitation requires an external contributor to submit a pull request that receives the 'format' label, triggering the vulnerable workflow with repository write access.
Blast radius
Successful exploitation allows the attacker to push malicious commits, modify issues or pull requests, and potentially compromise repository integrity and CI/CD supply chain trust.
Detection
Monitor GitHub Actions workflow runs for unexpected execution of fork-provided binaries (e.g., oxfmt) in workflows triggered by pull_request_target with repository write permissions; look for anomalous Git pushes or token usage in workflow logs.
Prioritized remediation
Upgrade Monkeytype to version 26.43.0 or later, which fixes the workflow to avoid persisting the elevated GITHUB_TOKEN before untrusted code execution.
ci-cd-compromisetoken-exfiltrationsupply-chainrce

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

Monkeytype is a minimalistic and customizable typing test. Prior to 26.43.0, the .github/workflows/fix-formatting.yml workflow runs on pull_request_target with repository write permissions, checks out a fork pull request, installs dependencies from the fork's package.json, and invokes the fork-controlled oxfmt binary. Because actions/checkout persists the elevated GITHUB_TOKEN in Git configuration until after untrusted code executes, an external contributor whose pull request receives the format label can run arbitrary code, read or exfiltrate the token, and push repository content or modify pull requests and issues. The issue affects the repository CI workflow, not the Monkeytype application or user data. This issue is fixed in version 26.43.0.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Weaknesses

CWE-829

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.