9.8

CVE-2026-31900: Black's vulnerable version parsing leads to RCE in GitHub Action

Analyzed
AliasesPYSEC-2026-2120GHSA-v53h-f6m7-xcgmUBUNTU-CVE-2026-31900
Published 11-03-2026Last modified 13-03-2026

Vulnerability summary

CVE-2026-31900 is a critical (CVSS 9.8) Improper Input Validation vulnerability in psf black. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 45.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.52%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 11-03-2026
    PublishedVulnerability first disclosed.
  2. 13-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.52%

Chance of exploitation in the next 30 days

Percentile

46%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.49% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • blackAll versions (No fix recorded) | < 26.3.1-1
Psf1 product
PyPI1 product
  • black< 26.3.0
Python1 product
Ubuntu1 product
  • blackAll versions (No fix recorded)

5 vendors · 5 products

References

5 links