{"id":"CVE-2026-114134","aliases":["CVE-2026-114134","GHSA-cg8m-r9f2-5wm2"],"related":[],"kind":"vulnerability","state":"published","title":"Black: GitHub Action installs unvalidated required-version from pyproject.toml","summary":"Black is the uncompromising Python code formatter. Prior to 26.10.1, the Black GitHub Action with use_pyproject: true accepts tool.black.required-version from pyproject.toml without validating that it is a released Black version specifier. An attacker who can submit a pull request can change that field to a direct reference to attacker-controlled code, causing the workflow to install and execute the code in the victim repository's GitHub Actions context. This issue is fixed in version 26.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Black is the uncompromising Python code formatter. Prior to 26.10.1, the Black GitHub Action with use_pyproject: true accepts tool.black.required-version from pyproject.toml without validating that it is a released Black version specifier. An attacker who can submit a pull request can change that field to a direct reference to attacker-controlled code, causing the workflow to install and execute the code in the victim repository's GitHub Actions context. This issue is fixed in version 26.10.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe 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.\n\n### Details\n\nThis 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.\n\n### Proof of concept\n\nReproduction 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.\n\n### Impact\n\nThis is a remote code execution vulnerability impacting users using the GitHub Action bundled with psf/black and using the `use_pyproject: true` setting.","format":"markdown","source":"ghsa"}],"published":"2026-10-22T16:18:57.000Z","modified":"2026-11-12T22:18:35.610Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.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","rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[{"version":"< 26.10.1","status":"affected"}],"vendor":"psf","product":"black","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"26.10.1"}],"ecosystem":"PyPI","package":"black","purl":"pkg:pypi/black","source":"ghsa"}],"references":[{"url":"https://github.com/psf/black/security/advisories/GHSA-cg8m-r9f2-5wm2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/psf/black/pull/5510","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/psf/black/commit/ac1f71563aeccf73cf13ece00f231d9d6c66a514","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/psf/black","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/psf/black/releases/tag/26.10.1","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-09T17:37:05.046Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-114134","url":"https://www.cve.org/CVERecord?id=CVE-2026-114134","licence":"CVE Terms of Use","modified":"2026-11-09T17:42:32.837Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cg8m-r9f2-5wm2","url":"https://github.com/advisories/GHSA-cg8m-r9f2-5wm2","licence":"CC-BY-4.0","modified":"2026-10-22T16:30:30.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-114134","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114134","licence":"Public domain","modified":"2026-11-12T22:18:35.610Z"}],"updatedAt":"2026-11-25T22:59:49.183Z","epss":{"score":0.00404,"percentile":0.36766,"date":"2026-12-01T12:00:22.000Z"}}