Skip to content
High 8.8

Black のGitHub Actionで、pyproject.tomlの指定により任意のコードを実行される脆弱性

CVE-2026-114134 First seen on SecPulse

Summary

2026年10月22日に公表された、Black(psf/black)のGitHub Actionの脆弱性です。use_pyproject を true にしていると、pyproject.toml の tool.black.required-version に書かれた値が検証されずにインストールされ、リポジトリ内で任意のコードを実行されるおそれがあります。影響を受けるのは26.10.1より前の版で、修正版の26.10.1が公開されています。Black を26.10.1以降に更新し、pyproject.toml の変更を含むプルリクエストは内容を確認してから取り込んでください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

2026年10月22日に公表された、Black(psf/black)のGitHub Actionの脆弱性です。use_pyproject を true にしていると、pyproject.toml の tool.black.required-version に書かれた値が検証されずにインストールされ、リポジトリ内で任意のコードを実行されるおそれがあります。影響を受けるのは26.10.1より前の版で、修正版の26.10.1が公開されています。Black を26.10.1以降に更新し、pyproject.toml の変更を含むプルリクエストは内容を確認してから取り込んでください。

Affected packages

PackageAffected → Fixed
pipblack
< 26.10.1→ 26.10.1
PyPIblack
< 26.10.1→ 26.10.1
psfblack —

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Black is the uncompromising Python code formatter. Prior to 26.10.1, the Black GitHub Action with use_pyproject: true accepts tool.black.required-version from pyproject.toml without validating that it is a released Black version specifier. An attacker who can submit a pull request can change that field to a direct reference to attacker-controlled code, causing the workflow to install and execute the code in the victim repository's GitHub Actions context. This issue is fixed in version 26.10.1.

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details