跳到正文
CVE-high(cvefeed.io)·· 4 小時前精選AI 評分77

Monkeytype CVE-2026-118762:fork PR 允許提升 GITHUB_TOKEN 執行任意程式

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

AI 導讀

Monkeytype 的 CI 工作流程在 26.43.0 之前因 pull_request_target 觸發並保留高許可權 GITHUB_TOKEN,導致外部 PR 可執行任意程式並取得 token。

推薦理由

此漏洞揭示 CI 工作流程中 token 失效管理的風險,提醒開發者務必使用 pull_request 觸發並限制寫入許可權。

正文 · 原文

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.

Impact

Affected Products

The following products are affected by CVE-2026-118762 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Monkeytype monkeytype

The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.

Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL MITRE-CVE
CVSS 3.1 CRITICAL [email protected]

Update the workflow to use pull_request instead of pull_request_target.

  • Update workflow to use pull_request.
  • Remove repository write permissions.
  • Update to version 26.43.0.

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-118762.

URL Resource
https://github.com/monkeytypegame/monkeytype/commit/592ce1becb9b6824badc14a803bcd9268cbea382
https://github.com/monkeytypegame/monkeytype/releases/tag/v26.43.0
https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-47v3-j88w-92f8

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-118762 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-118762 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-118762 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-118762 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    十月. 29, 2026

    Action Type Old Value New Value
    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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
    Added CWE CWE-829
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/118xxx/CVE-2026-118762.json">CVE-2026-118762</a>
    Added Reference https://github.com/monkeytypegame/monkeytype/commit/592ce1becb9b6824badc14a803bcd9268cbea382
    Added Reference https://github.com/monkeytypegame/monkeytype/releases/tag/v26.43.0
    Added Reference https://github.com/monkeytypegame/monkeytype/security/advisories/GHSA-47v3-j88w-92f8

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.

來源: CVE-high (cvefeed.io)
開啟原文