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.
Published: 2026-10-29
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Elevated GITHUB_TOKEN exploitation leading to repository write access
Action: Immediate Patch
AI Analysis

Impact

Monkeytype’s CI workflow ran on pull_request_target with repository write permissions, checking out forked code and invoking a fork‑controlled binary. The checkout action persisted the GITHUB_TOKEN in Git configuration, giving a contributor who received the format label the ability to execute arbitrary code that could read or exfiltrate the token and use it to push unrestricted content or alter pull requests and issues. The vulnerability allows an attacker to read repository secrets and modify or replace repository files, but does not affect the runtime application or end user data. The weakness is a credential exploitation flaw.

Affected Systems

Monkeys Monkeytype repository (monkeytypegame:monkeytype) versions prior to 26.43.0 are affected. No specific patch version list is provided beyond the note that v26.43.0 contains the fix.

Risk and Exploitability

The CVSS score of 9.3 marks it as critical. EPSS data is unavailable, but the KEV catalog does not list this issue. The likely attack vector is an external contributor submitting a pull request that triggers the vulnerable workflow; the attack requires no privileged network access beyond the PR submission. Given the high severity and the fact that the workflow grants full repository write access, the risk of exploitation is high if the CI remains running on forks.

Generated by OpenCVE AI on October 29, 2026 at 18:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Monkeytype repository to release v26.43.0 or later to eliminate the vulnerable workflow.
  • If immediate upgrade is not possible, disable the pull_request_target event for forks or restrict the workflow to only use a limited‑scope token that has no write permissions.
  • Revoke or limit the elevated GITHUB_TOKEN usage in any GitHub Actions that check out forked code by rotating the token or resetting its privileges.

Generated by OpenCVE AI on October 29, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title Monkeytype: fork PR can execute code with elevated GITHUB_TOKEN
Weaknesses CWE-829
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T16:50:44.341Z

Reserved: 2026-10-28T19:20:05.017Z

Link: CVE-2026-118762

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-29T17:18:07.070

Modified: 2026-10-29T17:18:07.200

Link: CVE-2026-118762

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T18:30:14Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere