Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

CVE-2026-114134: Black GitHub Action can install attacker code

CVE-2026-114134 · published 3 days ago
Summary

The Black code‑formatter’s GitHub Action (when configured to read the pyproject.toml file) may accept a version string that points to any location, not just an official Black release. An attacker who can submit a pull request could change that field to load malicious code during the automated workflow. Update the Action to version 26.10.1 or later to enforce proper version checks.

What to do
  • Update Łukasz langa black to version 26.10.1.
  • Update black to version 26.10.1.
  • Update black to version 26.10.0+aikido.1.
  • Update black to version 26.5.1+aikido.1.
Affected software
Ecosystem VendorProductAffected versions
pip Łukasz langa black < 26.10.1
Fix: upgrade to 26.10.1
pip – black < 26.10.1
Fix: upgrade to 26.10.1
Root:PyPI – black < 26.10.0+aikido.1
< 26.5.1+aikido.1
Fix: upgrade to 26.10.0+aikido.1
– psf black < 26.10.1
Debian:12 debian black All versions
Original advisory text
Black: GitHub Action installs unvalidated required-version from pyproject.toml
Black is the uncompromising Python code formatter. Prior to 26.10.1, the Black GitHub Action with use_pyproject: true accepts tool.black.required-version from pyproject.toml without validating that it is a released Black version specifier. An attacker who can submit a pull request can change that field to a direct reference to attacker-controlled code, causing the workflow to install and execute the code in the victim repository's GitHub Actions context. This issue is fixed in version 26.10.1.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.4 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-829Inclusion of Functionality from Untrusted Control Sphere
Timeline
Published5 Nov 2026
Updated7 Nov 2026
First seen22 Oct 2026
Track software like this
Free during beta