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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-829 — CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected products
| Vendor | Product | Versions |
|---|---|---|
| psf | black | < 26.10.1 [affected] |
References
- https://github.com/psf/black/security/advisories/GHSA-cg8m-r9f2-5wm2 (x_refsource_CONFIRM)
- https://github.com/psf/black/pull/5510 (x_refsource_MISC)
- https://github.com/psf/black/commit/ac1f71563aeccf73cf13ece00f231d9d6c66a514 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 06 Nov 2026 08:03 UTC.