# black (PyPI) vulnerabilities

4 known vulnerabilities (3 high, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 26.10.1 (Oct 10, 2026): no advisory affects it
- Newest unaffected release: 26.10.1 (Oct 10, 2026), the latest release
- Weekly downloads: 27.9M
- Dependents: 2,581
- Releases: 75 since 22.1.0 (Jan 29, 2022)
- Registry: https://pypi.org/project/black/
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-114134: 18.3.0a0 to 26.10.0 (26.10.1 is outside it)
- CVE-2026-32274: 18.3.0a0 to 26.3.0 (26.3.1 is outside it)
- CVE-2026-31900: 18.3.0a0 to 26.1.0 (26.3.0 is outside it)
- CVE-2024-21503: 18.3.0a0 to 24.2.0 (24.3.0 is outside it)

## Advisories (4)

### [CVE-2026-114134](https://cve.now/CVE-2026-114134): Black: GitHub Action installs unvalidated required-version from pyproject.toml

- Severity: High 8.7
- Published: Nov 5, 2026
- Affected: fixed in 26.10.1.
- Fixed in 26.10.1 (released Oct 10, 2026, 26 days before disclosure).
- The latest release, 26.10.1, is not affected.

### [CVE-2026-32274](https://cve.now/CVE-2026-32274): Black: Arbitrary file writes from unsanitized user input in cache file name

- Severity: High 8.7
- Published: Mar 12, 2026
- Affected: fixed in 26.3.1; from 24.3.0, fixed in 26.3.1.
- Fixed in 26.3.1 (released Mar 12, 2026, the day of disclosure).
- The latest release, 26.10.1, is not affected.

### [CVE-2026-31900](https://cve.now/CVE-2026-31900): Black's vulnerable version parsing leads to RCE in GitHub Action

- Severity: High 8.7
- Published: Mar 11, 2026
- Affected: fixed in 26.3.0.
- Fixed in 26.3.0 (released Mar 6, 2026, 5 days before disclosure).
- The latest release, 26.10.1, is not affected.

### [CVE-2024-21503](https://cve.now/CVE-2024-21503): Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the…

- Severity: Medium 5.3
- Published: Mar 19, 2024
- Affected: fixed in 24.3.0.
- Fixed in 24.3.0 (released Mar 15, 2024, 4 days before disclosure).
- The latest release, 26.10.1, is not affected.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/pypi/black
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
