CVE-2026-31900

Name
CVE-2026-31900
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
security-advisories@github.com https://github.com/psf/black/commit/0a2560b981364dde4c8cf8ce9d164c40669a8611
security-advisories@github.com https://github.com/psf/black/security/advisories/GHSA-v53h-f6m7-xcgm

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:python:black:*:*:*:*:*:*:*:* black >= None < 26.3.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
black edge-community 25.11.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable
black edge-community 25.9.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable
black edge-community 25.1.0-r1 Michał Polański <michal@polanski.me> possibly vulnerable
black edge-community 25.1.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable
black edge-community 24.10.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable
black edge-community 24.3.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable
black 3.23-community 25.11.0-r0 Michał Polański <michal@polanski.me> possibly vulnerable