CVE-2026-32274
Black: Arbitrary file writes from unsanitized user input in cache file name
CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-22 |
| Vendor | psf |
| Product | black |
| Published | Mar 12, 2026 |
| Last Updated | Mar 13, 2026 |
Stay Ahead of the Next One
Get instant alerts for psf black
Be the first to know when new unknown vulnerabilities affecting psf black are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
psf / black
< 26.3.1