Ad

CVE-2026-31900

HIGH CVSS 4.0: 8.7 EPSS 0.18%
Updated Mar 16, 2026
GitHub
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions before 26.3.0
Fixed In 26.3.0
Type CWE-20 (Improper Input Validation)
Vendor GitHub
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Python Black
cpe:2.3:a:python:black:*:*:*:*:*:*:*:*
26.3.0