---
title: "Python black vulnerabilities and CVEs"
url: https://radicalnotion.ai/vendor/python/black
type: product
description: "Python black has 3 published CVEs, 0 in CISA KEV and 1 with public exploits."
updated: 2026-03-12
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# Python black vulnerabilities

Vendor: [Python](https://radicalnotion.ai/vendor/python)

- **Published CVEs:** 3
- **In CISA KEV:** 0
- **With a public exploit:** 1
- **With a patch:** 3
- **Average CVSS:** 7.6
- **First CVE:** 2024-03-19
- **Latest CVE:** 2026-03-12

## Severity breakdown

| Severity | CVEs |
| --- | --- |
| Critical | 0 |
| High | 2 |
| Medium | 1 |
| Low | 0 |
| Unscored | 0 |

## Most common weakness types

| CWE | Name | CVEs |
| --- | --- | --- |
| [CWE-1333](https://radicalnotion.ai/cwe/cwe-1333) | Inefficient Regular Expression Complexity | 1 |
| [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation | 1 |
| [CWE-22](https://radicalnotion.ai/cwe/cwe-22) | Improper Limitation of a Pathname to a Restricted Directory | 1 |

## CVEs by year

| Year | CVEs published |
| --- | --- |
| 2024 | 1 |
| 2025 | 0 |
| 2026 | 2 |

## Affected versions

| Version | Kind | CVEs |
| --- | --- | --- |
| \< 24.3.0 | range | 1 |
| \< 26.3.0 | range | 1 |
| \< 26.3.1 | range | 1 |

## Fixed in

| Version | CVEs |
| --- | --- |
| 24.3.0 | 1 |
| 26.3.0 | 1 |
| 26.3.1 | 1 |

## CVEs

| CVE | Title | Severity | CVSS | CISA KEV | Public exploit | Patch |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-32274 | Black: Arbitrary file writes from unsanitized user input in cache file name | high | 8.7 | No | No | Yes |
| CVE-2026-31900 | Black's vulnerable version parsing leads to RCE in GitHub Action | high | 8.7 | No | No | Yes |
| CVE-2024-21503 | Black vulnerable to Regular Expression Denial of Service (ReDoS) | medium | 5.3 | No | Yes | Yes |

## Frequently asked questions

### How many CVEs does Python black have?

Python black has 3 published CVE records since 2024.

### How many Python black CVEs are in CISA KEV?

None of Python black's CVEs are currently listed in CISA's Known Exploited Vulnerabilities catalog.

### Are there public exploits for Python black vulnerabilities?

Yes — 1 of Python black's CVEs have a known public exploit.

### Which versions of Python black are affected?

6 distinct Python black versions are named across its CVEs. Use the version filter above to see the CVEs affecting a specific version.

### What are the most common weakness types in Python black CVEs?

Python black's CVEs most often map to these CWE weakness types: CWE-1333 (Inefficient Regular Expression Complexity), CWE-20 (Improper Input Validation), CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

### What is the average severity of Python black CVEs?

The average CVSS base score across Python black's scored CVEs is 7.6.

## Other products from this vendor

- [CPython](https://radicalnotion.ai/vendor/python/cpython) (208 CVEs)
- [Python](https://radicalnotion.ai/vendor/python/python) (150 CVEs)
- [Pillow](https://radicalnotion.ai/vendor/python/pillow) (113 CVEs)
- [urllib3](https://radicalnotion.ai/vendor/python/urllib3) (22 CVEs)
- [requests](https://radicalnotion.ai/vendor/python/requests) (7 CVEs)
- [setuptools](https://radicalnotion.ai/vendor/python/setuptools) (5 CVEs)
- [keyring](https://radicalnotion.ai/vendor/python/keyring) (3 CVEs)
- [tarfile module](https://radicalnotion.ai/vendor/python/tarfile-module) (3 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/vendor/python/black). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
