pypi package report

Is black safe?

3 known vulnerabilities, worst severity HIGH.

// reach

14 direct dependencies

2 carry known advisories, worst CRITICAL

501 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

No published models are known to use this package.


cvss
8.7
high

CVSS v4.0 base score out of 10

epss
not scored

chance of exploitation in 30 days

xyz score
5.0
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-cg8m-r9f2-5wm2, the advisory selected below

// 3 advisories

GHSA-cg8m-r9f2-5wm2

HIGHOSV ratingCVE-2026-114134
// summary

The GitHub Action bundled with Black can read the version from tool.black.required-version if use_pyproject is set to True. This version is not validated and therefore can be used to execute untrusted code in the context of a victim's repository.

// details

This is similar to the previous CVE-2026-31900. The value in tool.black.required-version is accepted as the version to be installed by the action without validation.

// proof of concept

Reproduction requires a victim to use Black's GitHub Action with use_pyproject: true. The attacker would then issue a PR to the victim's repository with pyproject.toml edited so that Black points to a malicious repository.

// impact

This is a remote code execution vulnerability impacting users using the GitHub Action bundled with psf/black and using the use_pyproject: true setting.

// cvss v4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality (vulnerable system)
High
Integrity (vulnerable system)
High
Availability (vulnerable system)
High
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None

Checked 2026-11-06 at 22:34 UTC. The most recent advisory here was published 2026-10-22. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.