Vulnerabilities / CVE-2026-31900

critical

CVE-2026-31900

Black is the uncompromising Python code formatter. Black provides a Gi ...

Published Modified CWE 20
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

SourcePackageFixed in
debian 11blackno fix listed
debian 12blackno fix listed
debian 13blackno fix listed
debian 14blackno fix listed
echoblackno fix listed
rapidfort alpine 3.20black26.3.0-r0
rapidfort alpine 3.21black26.3.0-r0
rapidfort alpine 3.22black26.3.0-r0
rapidfort alpine 3.23black26.3.0-r0
rapidfort alpine 3.24black26.3.0-r0
rapidfort debian 12blackno fix listed
rapidfort debian 13blackno fix listed
Show all 18 entries from 17 sources
SourcePackageFixed in
debian 11blackno fix listed
debian 12blackno fix listed
debian 13blackno fix listed
debian 14blackno fix listed
echoblackno fix listed
rapidfort alpine 3.20black26.3.0-r0
rapidfort alpine 3.21black26.3.0-r0
rapidfort alpine 3.22black26.3.0-r0
rapidfort alpine 3.23black26.3.0-r0
rapidfort alpine 3.24black26.3.0-r0
rapidfort debian 12blackno fix listed
rapidfort debian 13blackno fix listed
rapidfort fedora 43black25.1.0-8.fc43
rapidfort ubuntu 20.04black0:26.3.1-1
rapidfort ubuntu 22.04black0:26.3.1-1
rapidfort ubuntu 24.04black0:26.3.1-1
seal pip::Seal Security Databaseblack22.12.0+sp999
seal pip::Seal Security Databaseseal-black22.12.0+sp999

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.