CVE-2026-32274: psf black · Path Traversal
Affects psf blackSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 26.3.1 soon.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 26.3.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade psf black to 26.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| psfblack | Affected
| Fixed in
|
PyPIblackpkg:pypi/blackOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Black version 26.3.1. Users should upgrade to this version to remediate the vulnerability. Until upgrading, avoid allowing untrusted user input in the --python-cell-magics option to prevent exploitation. No other effective mitigations meeting ease of use and applicability criteria are currently available according to the vendor advisory.
Description
The uncompromising code formatter Security Fix(es): Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker who controls the value of this argument to write cache files to arbitrary file system locations. Fixed in Black 26.3.1.(CVE-2026-32274)
References
- github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m (opens in a new tab)
- github.com/psf/black/pull/5038 (opens in a new tab)
- github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d (opens in a new tab)
- github.com/psf/black/releases/tag/26.3.1 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-32274 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2447111 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:13553 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:13545 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:10184 (opens in a new tab)
- github.com/psf/black/pull/4176 (opens in a new tab)
- github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml (opens in a new tab)