Technical impact
Black is a Python code formatter delivered as a GitHub Action that can read a required‑version from a repository’s pyproject.toml. Before version 26.10.1 the action did not validate that the value came from a released Black version. An attacker who can submit a pull request to a repository that uses the action with use_pyproject: true can replace that field with a reference to arbitrary code. When the workflow runs, the action installs the referenced package in the GitHub Actions runner and executes it, giving the attacker remote code execution on the runner that has the same privileges as the workflow. The vulnerability allows an attacker to run malicious code within the workflow context and may lead to complete compromise of the repository’s secrets and resources.
Affected Systems
Vendors and products affected include the Python Software Foundation’s Black formatter. Any repository that uses the Black GitHub Action with use_pyproject: true and is running a Black version earlier than 26.10.1 is impacted. The fix is issued in version 26.10.1; repositories using that or later versions are not vulnerable.
Risk and Exploitability
The CVSS score of 8.7 indicates a high severity vulnerability. EPSS is not available, so the likelihood of exploitation cannot be quantified from that metric, but the flaw is publicly disclosed and can be exploited by any contributor to a repository that runs the action. The vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred from the description: an attacker must control a pull request to the target repository. Once the pull request is merged, the malicious required‑version will be installed and executed automatically during the next workflow run, giving the attacker remote code execution on the GitHub Actions runner.
Github GHSA