{"cve":"CVE-2026-31900","nvd":{"published":"2026-03-11T20:16:15.960","modified":"2026-06-17T10:34:43.470","status":"Analyzed","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.","cvss_v4":{"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","score":8.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20"],"references":["https://github.com/psf/black/commit/0a2560b981364dde4c8cf8ce9d164c40669a8611","https://github.com/psf/black/security/advisories/GHSA-v53h-f6m7-xcgm"],"products":["python:black"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-31900","score":0.00488,"percentile":0.42053,"date":"2026-10-31"},"kev":null,"osv":[{"id":"PYSEC-2026-2120","url":"https://osv.dev/vulnerability/PYSEC-2026-2120","summary":"","modified":"2026-07-13T07:15:15.712525536Z","packages":[{"ecosystem":"PyPI","name":"black","purl":"pkg:pypi/black","ranges":["<26.3.0"],"fixed":["26.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}