---
id: CVE-2026-118762
title: 'Monkeytype: fork PR can execute code with elevated GITHUB_TOKEN'
summary: >-
  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
  depend…
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-829
vendor: monkeytypegame
product: monkeytype
affected:
  - monkeytype < 26.43.0
published: '2026-10-29'
updated: '2026-10-29'
sourceUpdated: '2026-10-29T16:50:44.341Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-118762'
references:
  - url: >-
      https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-47v3-j88w-92f8
    label: >-
      https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-47v3-j88w-92f8
  - url: >-
      https://github.com/monkeytypegame/monkeytype/commit/592ce1becb9b6824badc14a803bcd9268cbea382
    label: >-
      https://github.com/monkeytypegame/monkeytype/commit/592ce1becb9b6824badc14a803bcd9268cbea382
  - url: 'https://github.com/monkeytypegame/monkeytype/releases/tag/v26.43.0'
    label: 'https://github.com/monkeytypegame/monkeytype/releases/tag/v26.43.0'
tags:
  - cve.org
epss: 0.0032
epssPercentile: 0.25011
ingestedAt: '2026-11-01T21:01:32.747Z'
---

## Overview

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.

## Affected

- `monkeytype < 26.43.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
