Directory Traversal Affecting black package, versions <25.1.0-3+deb13u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.62% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-BLACK-15566378
  • published15 Mar 2026
  • disclosed12 Mar 2026

Introduced: 12 Mar 2026

CVE-2026-32274  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Debian:13 black to version 25.1.0-3+deb13u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream black package and not the black package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1