Back to search
CVE-2026-32274
Published: Mar 12, 2026
Modified: Mar 13, 2026
PUBLISHED
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.
| Vendor | Product | Versions |
|---|---|---|
psf | black | affected < 26.3.1 |
Weaknesses (CWE)
References
https://github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m
x_refsource_CONFIRM
https://github.com/psf/black/pull/5038
x_refsource_MISC
https://github.com/psf/black/releases/tag/26.3.1
x_refsource_MISC
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now