Skip to content
pkgseek
Back to CVE search

CVE-2026-31900

critical · 9.8

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.

First indexed 3/11/2026View on NVD

Advisory Facts

Markdown

CVE-2026-31900 is rated CRITICAL (9.8), with 7 indexed affected package builds across 2 distributions.

Severity / Score
CRITICAL (9.8)
Affected builds
7
Affected distros
2
Distros with fixed_in
Fedora
+ Embed this vulnerability status card

https://pkgseek.com/embed/security/CVE-2026-31900?locale=en

Distribution-aware status

2
Distributions
7
Package/release records
2
Vendor advisories
5
Fix versions available

Why the upstream version is not enough

Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.

Affected packages

Newest affected build per package, repository source and distribution release.

7 affected package/release combinations
black
44noarch
25.1.0-8.fc44Fixed in 26.5.1-1.fc44
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade black
black+colorama
44noarch
25.1.0-8.fc44Fixed in 26.5.1-1.fc44
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade black+colorama
black+d
44noarch
25.1.0-8.fc44Fixed in 26.5.1-1.fc44
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade black+d
black+jupyter
44noarch
25.1.0-8.fc44Fixed in 26.5.1-1.fc44
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade black+jupyter
python3-lsp-black
44noarch
2.0.0-13.fc44Fixed in 2.0.0-17.fc44
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-lsp-black

CNNVD cross-reference

Cached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.