← Back to CVEs
CVE-2026-32274
HIGH7.5
Description
Black is the uncompromising Python code formatter. Prior to 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 Details
CVSS v3.1 Score7.5
SeverityHIGH
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published3/12/2026
Last Modified3/18/2026
Sourcenvd
Honeypot Sightings0
Affected Products
python:black
Weaknesses (CWE)
CWE-22
References
https://github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d(security-advisories@github.com)
https://github.com/psf/black/pull/5038(security-advisories@github.com)
https://github.com/psf/black/releases/tag/26.3.1(security-advisories@github.com)
https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m(security-advisories@github.com)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.