black

The uncompromising code formatter.

26.10.1Latest, 10 Oct 2026
11MDownloads, last month
0Advisories on the latest
6Advisories, all versions
MITLicence
42KStars
7.8/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High Black: GitHub Action installs unvalidated required-version from pyproject.toml CVE-2026-114134 Fixed in 26.10.1 22 Oct 2026
High Black: Arbitrary file writes from unsanitized user input in cache file name CVE-2026-32274 Fixed in 26.3.1 12 Mar 2026
PYSEC-2026-2121 CVE-2026-32274 Fixed in 26.3.1 12 Mar 2026
PYSEC-2026-2120 CVE-2026-31900 Fixed in 26.3.0 11 Mar 2026
Moderate Black vulnerable to Regular Expression Denial of Service (ReDoS) CVE-2024-21503 Fixed in 24.3.0 19 Mar 2024
PYSEC-2024-48 CVE-2024-21503 Fixed in 24.3.0 19 Mar 2024

In the news

On Hacker News

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.