Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-31900— Black's vulnerable version parsing leads to RCE in GitHub Action

Quick assessment

Affected
psf black
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Black是Python Software Foundation开源的一个 Python 代码格式化程序。 Black 26.3.0之前版本存在输入验证错误漏洞,该漏洞源于恶意拉取请求可配置使用恶意仓库URL,可能导致任意代码执行。

AI Predicted 9.8 Difficulty: Easy EPSS 0.46% · P38
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31900

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Black's vulnerable version parsing leads to RCE in GitHub Action
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
Black 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Black是Python Software Foundation开源的一个 Python 代码格式化程序。 Black 26.3.0之前版本存在输入验证错误漏洞,该漏洞源于恶意拉取请求可配置使用恶意仓库URL,可能导致任意代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
psf black < 26.3.0 -

II. Public POCs for CVE-2026-31900

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31900

登录查看更多情报信息。

Patches & Fixes for CVE-2026-31900 (1)

Vendor Advisories for CVE-2026-31900 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-31900

No comments yet


Leave a comment