VULNERABILITY INTELLIGENCE

CVE-2026-32274

CVSS score7.5 HIGH
EPSS probability0.65%
CISA KEVNot currently listed
Published2026-03-12
Last modified2026-08-03
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

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.

Weakness classification

  • security-advisories@github.com: CWE-22
  • 0b0ca135-0b70-47e7-9f44-1890c2a1c46c: CWE-22

Primary references