black vulnerabilities

The uncompromising code formatter.

Registry
PyPI
Latest
26.10.1
License
MIT

4 known advisories

The latest version, 26.10.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'black>=26.10.1'

Is your project on an affected black?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for black

  • HighCVE-2026-114134GHSA-cg8m-r9f2-5wm222 Oct 2026

    Black: GitHub Action installs unvalidated required-version from pyproject.toml

    Affected
    <26.10.1
    Fixed in
    26.10.1
  • HighCVE-2026-32274GHSA-3936-cmfr-pm3m12 Mar 2026

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

    Affected
    >=24.3.0 <26.3.1
    Fixed in
    26.3.1
  • LowCVE-2026-31900PYSEC-2026-212011 Mar 2026

    No summary published

    Affected
    <26.3.0
    Fixed in
    26.3.0
  • MediumCVE-2024-21503GHSA-fj7x-q9j7-g6q619 Mar 2024

    Black vulnerable to Regular Expression Denial of Service (ReDoS)

    Affected
    <24.3.0
    Fixed in
    24.3.0

Is your black version vulnerable?

Which of your client projects still run an old black?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.