Vulnerability

CVE-2026-31900

highCVSS 4.0 8.7Published 11 Mar 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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 products

From the NVD's configuration data (CPE), vendor first.

  • Python black

Weakness type

References

  • github.com /psf/black/commit/0a2560b981364dde4c8cf8ce9d164c40669a8611
  • github.com /psf/black/security/advisories/GHSA-v53h-f6m7-xcgm

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning