PoC Monitor
← All CVEs
CVE-2026-31900published 11 Mar 2026 19:15 UTCData: JSON · API

Black

Black's vulnerable version parsing leads to RCE in GitHub Action

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.

First public PoC 31 daysafter publication · 11 Apr 2026
Public PoCs11 on GitHub
CVSS9.8critical · scored by NVD · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

psf black
  • < 26.3.0

Fixed in 26.3.0

Mitigation

Upgrade black to 26.3.0 or later.

References

Timeline

Days relative to CVE publication
t=0+7+14+21+28CVE published11 Mar 2026 · t = 0First public PoC11 Apr 2026 · t+31d

First public PoC 31 days after publication; not in CISA KEV. First PoC: Batosay1337Lab/cve-2026-31900-lab (created 11 Apr 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
Batosay1337Lab/cve-2026-31900-lab 11 Apr 2026 +31 d 1 PoC
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.