Input validation error in black - CVE-2026-31900
Published: November 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code in the Black GitHub Action and potentially access secrets or use permissions available to the workflow.
The vulnerability exists due to improper version validation in the Black GitHub Action when it reads the formatter version from repository configuration. A remote attacker can submit a pull request with untrusted dependency metadata to cause the action to run code from an untrusted source.