Skip to content
OpenAdvisories
High SUSE-SU-2026:20928-1 2 CVEs

Security update for python-black

Published Mar 24, 2026 · Updated Apr 2, 2026

Summary

This update for python-black fixes the following issues:

- CVE-2026-31900: a malicious pyproject.toml edit can lead to arbitrary code execution (bsc#1259546).
- CVE-2026-32274: arbitrary file writes from unsanitized user input in cache file name (bsc#1259608).

Fixed packages 2

ReleasePackageFixed in
SUSE · SLES 16.0 Linux Enterprise Server 16.0 python-black 25.1.0-160000.3.1
SUSE · SLES for SAP 16.0 Linux Enterprise Server for SAP applications 16.0 python-black 25.1.0-160000.3.1

Vulnerabilities 2

  • High 8.7
    CVE-2026-31900 Public exploit

    Black's vulnerable version parsing leads to RCE in GitHub Action

    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 co…

  • High 8.7

    Black: Arbitrary file writes from unsanitized user input in cache file name

    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…

References

  • report
    https://bugzilla.suse.com/1259546
  • report
    https://bugzilla.suse.com/1259608
  • web
    https://www.suse.com/security/cve/CVE-2026-31900
  • web
    https://www.suse.com/security/cve/CVE-2026-32274