Live threats

All CVEs / Python

CVE-2026-31900Python Black

High 8.7

Priority
52
CVSS 4.0
8.7
EPSS
—
Auth required
Yes
Published
Mar 11, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Black.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
GitHub Actions psf/black < 26.3.0 26.3.0 —
PyPI black < 26.3.0 26.3.0 pip install "black>=26.3.0"

Per OSV / GitHub Advisories (GHSA-v53h-f6m7-xcgm, PYSEC-2026-2120). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonblack< 26.3.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.