CVE-2026-31900
Black is the uncompromising Python code formatter. Black provides a Gi ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD.
Description
Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.toml to use a direct URL reference to a malicious repository. This could lead to arbitrary code execution in the context of the GitHub Action. Attackers could then gain access to secrets or permissions available in the context of the action. Version 26.3.0 fixes this vulnerability.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | black | no fix listed |
| debian 12 | black | no fix listed |
| debian 13 | black | no fix listed |
| debian 14 | black | no fix listed |
| echo | black | no fix listed |
| rapidfort alpine 3.20 | black | 26.3.0-r0 |
| rapidfort alpine 3.21 | black | 26.3.0-r0 |
| rapidfort alpine 3.22 | black | 26.3.0-r0 |
| rapidfort alpine 3.23 | black | 26.3.0-r0 |
| rapidfort alpine 3.24 | black | 26.3.0-r0 |
| rapidfort debian 12 | black | no fix listed |
| rapidfort debian 13 | black | no fix listed |
Show all 18 entries from 17 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | black | no fix listed |
| debian 12 | black | no fix listed |
| debian 13 | black | no fix listed |
| debian 14 | black | no fix listed |
| echo | black | no fix listed |
| rapidfort alpine 3.20 | black | 26.3.0-r0 |
| rapidfort alpine 3.21 | black | 26.3.0-r0 |
| rapidfort alpine 3.22 | black | 26.3.0-r0 |
| rapidfort alpine 3.23 | black | 26.3.0-r0 |
| rapidfort alpine 3.24 | black | 26.3.0-r0 |
| rapidfort debian 12 | black | no fix listed |
| rapidfort debian 13 | black | no fix listed |
| rapidfort fedora 43 | black | 25.1.0-8.fc43 |
| rapidfort ubuntu 20.04 | black | 0:26.3.1-1 |
| rapidfort ubuntu 22.04 | black | 0:26.3.1-1 |
| rapidfort ubuntu 24.04 | black | 0:26.3.1-1 |
| seal pip::Seal Security Database | black | 22.12.0+sp999 |
| seal pip::Seal Security Database | seal-black | 22.12.0+sp999 |