CVE-2026-118762: Monkeytype: fork PR can execute code with elevated GITHUB_TOKEN

Published Oct 29, 2026
·
Updated

Monkeytype is a minimalistic and customizable typing test. Prior to 26.43.0, the .github/workflows/fix-formatting.yml workflow runs on pullrequesttarget 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 GITHUBTOKEN 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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Monkeytype to a version that resolves this vulnerability.

    Fixed in 26.43.0

Event History

Oct 29, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An external contributor can exploit it by submitting a pull request from a fork and having that pull request receive the format label. No prior repository permissions are required.

2

What access could an attacker gain through the workflow?

The attacker can execute arbitrary code in the CI workflow, read or exfiltrate the elevated GITHUB_TOKEN, and use it to push repository content or modify pull requests and issues.

3

Are Monkeytype application deployments or user data affected?

No. The issue affects the repository CI workflow rather than the Monkeytype application or its user data.

4

How can maintainers determine whether they are vulnerable?

Repositories using a version prior to 26.43.0 are affected if their fix-formatting workflow runs on pull_request_target with repository write permissions, checks out fork pull requests, and installs or invokes fork-controlled dependencies or binaries.

5

What should maintainers do if they cannot immediately upgrade?

The provided information does not specify a workaround. Until the fix is applied, avoid allowing the affected formatting workflow to run against fork pull requests that can control package.json or the invoked oxfmt binary.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203