Skip to main content
VulnerabilityPublished Updated

CVE-2026-32274: psf black · Path Traversal

Affects psf blackSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 26.3.1 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
psfblackAffected
  • >=24.3.0 <26.3.1
Fixed in
  • 26.3.1
PyPIblackpkg:pypi/blackOther threatsAffected
  • <26.3.1
Fixed in
  • 26.3.1

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

Community reviews

Loading reviews…