CVE-2026-32274
Last modified
CVE-2026-32274 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.60% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Black | < 26.3.1 |
References
- https://github.com/psf/black/pull/5038Issue Tracking, Patch
- https://github.com/psf/black/releases/tag/26.3.1Release Notes
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-32274?
How severe is CVE-2026-32274?
How do I fix CVE-2026-32274?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-32269Parse Server is an open source backend that can be deployed …6.5
- CVE-2026-3227A command injection vulnerability was identified in TP-Link …6.8
- CVE-2026-32270Craft Commerce is an ecommerce platform for Craft CMS. In ve…1.7
- CVE-2026-32271Craft Commerce is an ecommerce platform for Craft CMS. In ve…7.7
- CVE-2026-32272Craft Commerce is an ecommerce platform for Craft CMS. In ve…8.7
- CVE-2026-32273Discourse is an open-source discussion platform. From versio…5.4
- CVE-2026-32275Tautulli is a Python based monitoring and tracking tool for …9.1
- CVE-2026-32276Connect-CMS is a content management system. In versions on t…8.8
- CVE-2026-32277Connect-CMS is a content management system. In versions 1.35…8.7
- CVE-2026-32278Connect-CMS is a content management system. In versions on t…4.8
- CVE-2026-32279Connect-CMS is a content management system. In versions on t…6.8
- CVE-2026-3228The NextScripts: Social Networks Auto-Poster plugin for Word…6.4
Are you affected by CVE-2026-32274?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
