CVE catalog

CVE-2026-32274

Black is the uncompromising Python code formatter…

[CVE catalog]

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.

Severity
High · CVSS 8.7
Published
Source
[NVD] · [CVE record]
EPSS
0.63% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "black",
      "status": "fixed",
      "release": "sid",
      "version": "26.10.1-1"
    },
    {
      "name": "black",
      "status": "fixed",
      "release": "forky",
      "version": "26.10.1-1"
    },
    {
      "name": "black",
      "status": "fixed",
      "release": "trixie",
      "version": "25.1.0-3+deb13u1"
    },
    {
      "name": "black",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "23.1.0-1"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1130657,
      "name": "black",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "26.3.1-1"
    },
    {
      "bug": 1130657,
      "name": "black",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "26.3.1-1"
    },
    {
      "bug": 1130657,
      "name": "black",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "25.1.0-3+deb13u1"
    },
    {
      "bug": 1130657,
      "name": "black",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": ""
    }
  ],
  "distribution_packages": [
    {
      "name": "black",
      "ecosystem": "pip",
      "fixed_version": "26.3.1"
    },
    {
      "name": "black",
      "ecosystem": "cpe",
      "fixed_version": "not yet fixed"
    },
    {
      "name": "ansible-lint",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "26.9.0-1.1"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "fixed_version": "26.9.0-1.1",
      "provider_record_id": "OPENSUSE-SU-2026:11856-1"
    },
    {
      "name": "python-black",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "24.3.0-150400.9.11.1"
            }
          ]
        }
      ],
      "release": "leap 15.6",
      "versions": [],
      "ecosystem": "rpm",
      "fixed_version": "24.3.0-150400.9.11.1",
      "provider_record_id": "SUSE-SU-2026:0900-1"
    }
  ]
}

[Debian bug #1130657]

Publisher notes

[bookworm] black: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [black]Unknown
    Details (2)
    • 23.1.0-1 · all · bookworm

      Affected

      nvd · black · debian · bookworm; nvd · black · debian · 12

    • 23.1.0-1 · all · bookworm

      Affected

      nvd · black · debian · bookworm; nvd · black · debian · 12

  • Source package: [black]

    Details (2)
    • 23.1.0-1 · all · bookworm

      Affected

      nvd · black · debian · bookworm; nvd · black · debian · 12

    • 23.1.0-1 · all · bookworm

      Affected

      nvd · black · debian · bookworm; nvd · black · debian · 12

[Debian 13 (Trixie)]

  • [black]Unknown
    Details (2)
    • 25.1.0-3+deb13u1 · amd64 · trixie

      Fixed · Fixed: 25.1.0-3+deb13u1

      nvd · black · debian · 13

    • 25.1.0-3+deb13u1 · arm64 · trixie

      Fixed · Fixed: 25.1.0-3+deb13u1

      nvd · black · debian · 13

  • Source package: [black]

    Details (2)
    • 25.1.0-3+deb13u1 · all · trixie

      Fixed · Fixed: 25.1.0-3+deb13u1

      nvd · black · debian · 13

    • 25.1.0-3+deb13u1 · all · trixie

      Fixed · Fixed: 25.1.0-3+deb13u1

      nvd · black · debian · 13

[openSUSE Tumbleweed]

  • [ansible-lint]Unknown

    Source package: [ansible-lint]

    Details (1)
    • 26.8.0-1.1 · noarch · tumbleweed

      Affected · Fixed: 26.9.0-1.1

      nvd · ansible-lint · opensuse · tumbleweed

Observed:

References