CVE catalog

CVE-2026-31900

Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.48% · Oct 25, 2026

Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.toml to use a direct URL reference to a malicious repository. This could lead to arbitrary code execution in the context of the GitHub Action. Attackers could then gain access to secrets or permissions available in the context of the action. Version 26.3.0 fixes this vulnerability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianblacksid26.10.1-1vulnerable
Debianblackforky26.10.1-1vulnerable
Debianblacktrixie25.1.0-3+deb13u1vulnerable
Debianblackbookworm23.1.0-1vulnerable
CpeblackNot reportedNot reportedvulnerable
Susepython-blacklinux enterprise server 16.025.1.0-160000.3.1fixed
Susepython-blacklinux enterprise server for sap applications 16.025.1.0-160000.3.1fixed
Opensusepython-blackleap 16.025.1.0-160000.3.1fixed
Opensusepython-blacktumbleweed26.3.1-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianblacksourcesid(unfixed)unimportantNot reportedNot reported
Debianblacksourceforky(unfixed)unimportantNot reportedNot reported
Debianblacksourcetrixie(unfixed)unimportantNot reportedNot reported
Debianblacksourcebookworm(unfixed)unimportantNot reportedNot reported
Susepython-blackrpmlinux enterprise server 16.025.1.0-160000.3.1Not reportedSUSE-SU-2026:20928-1Not reported
Susepython-blackrpmlinux enterprise server for sap applications 16.025.1.0-160000.3.1Not reportedSUSE-SU-2026:20928-1Not reported
Opensusepython-blackrpmleap 16.025.1.0-160000.3.1Not reportedOPENSUSE-SU-2026:20417-1Not reported
Opensusepython-blackrpmtumbleweed26.3.1-1.1Not reportedOPENSUSE-SU-2026:10372-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [black]Affected
    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]Affected
    Details (2)
    • 25.1.0-3+deb13u1 · amd64 · trixie

      Affected

      nvd · black · debian · 13

    • 25.1.0-3+deb13u1 · arm64 · trixie

      Affected

      nvd · black · debian · 13

  • Source package: [black]

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

      Affected

      nvd · black · debian · 13

    • 25.1.0-3+deb13u1 · all · trixie

      Affected

      nvd · black · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-black]

    Details (1)
    • 26.5.1-1.3 · noarch · tumbleweed

      Unknown · Fixed: 26.3.1-1.1

      Version impact unknown

      nvd · python-black · opensuse · tumbleweed

  • Source package: [python-black]

    Details (1)
    • 26.5.1-1.3 · noarch · tumbleweed

      Unknown · Fixed: 26.3.1-1.1

      Version impact unknown

      nvd · python-black · opensuse · tumbleweed

Observed:

References