Black: GitHub Action installs unvalidated required-version from pyproject.toml
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 5, 2026
- Updated
- Nov 9, 2026
- Reserved
- Oct 20, 2026
Description
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.
| Product | Versions |
|---|---|
| black psf | < 26.10.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | GitHub_M |
Weaknesses
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.