Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Black versions 24.3.0 up to but not including 26.3.1 are vulnerable to arbitrary file writes. The `--python-cell-magics` option value was placed unsanitized into a cache file name, so an attacker who controls that argument can write cache files to arbitrary locations on the file system. Upgrade to Black 26.3.1; until then, do not pass untrusted input into `--python-cell-magics`.
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 |
|---|---|---|---|---|
| 8.7 | High | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0069, the 53rd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:34 UTC First seen by agentprime
- 31 Oct 2026, 14:34 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-3936-cmfr-pm3m
- OSV: GHSA-3936-cmfr-pm3m
- github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m
- nvd.nist.gov/vuln/detail/CVE-2026-32274
- github.com/psf/black/pull/4176
- github.com/psf/black/pull/5038
- github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d
- github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9
- access.redhat.com/errata/RHSA-2026:10184
- access.redhat.com/errata/RHSA-2026:13545
- access.redhat.com/errata/RHSA-2026:13553
- access.redhat.com/security/cve/CVE-2026-32274
- bugzilla.redhat.com/show_bug.cgi?id=2447111
- github.com/psf/black