Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Black versions before 24.3.0 are vulnerable to a Regular Expression Denial of Service (ReDoS) through the lines_with_leading_tabs_expanded function. An attacker who can supply input to Black, such as by running it on untrusted code, can cause a denial of service. Upgrade to black 24.3.0 or later; if upgrading is not possible, avoid running Black on untrusted input.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.3 | Medium | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P | CNA (snyk) |
- CISA KEV Not listed.
- EPSS 0.0098, the 62nd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:35 UTC First seen by agentprime
- 31 Oct 2026, 14:35 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-fj7x-q9j7-g6q6
- OSV: GHSA-fj7x-q9j7-g6q6
- nvd.nist.gov/vuln/detail/CVE-2024-21503
- github.com/psf/black/commit/f00093672628d212b8965a8993cee8bedf5fe9b8
- github.com/psf/black
- github.com/psf/black/releases/tag/24.3.0
- github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2024-48.yaml
- security.snyk.io/vuln/SNYK-PYTHON-BLACK-6256273