CVE-2026-32274: Black · Arbitrary file writes from unsanitized user input in cache file name
Affects python-lsp-serverSource GCVE Database
Not known to be exploited · CVSS 8.7 High : upgrade to 1.14.0_1 soon.
Data as of 26 Oct 2026, 19:32 UTC
- Patch
- Available – fixed in 1.14.0_1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade python-lsp-server to 1.14.0_1.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpython-lsp-serverpkg:brew/python-lsp-serverOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official fix by upgrading Black to version 1.14.0_1 or later (Black 26.3.1). As a workaround, do not allow untrusted user input to be passed to the --python-cell-magics option. Since a patch is available, upgrading is the recommended remediation.
Description
Black, a code formatting tool, had a vulnerability where the cache file name was constructed using the unsanitized value of the --python-cell-magics option. This allowed an attacker controlling this option to write cache files to arbitrary file system locations. The issue is fixed in Black version 26.3.1.
References
- github.com/psf/black/security/advisories/GHSA-3936-cmfr-pm3m (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-32274 (opens in a new tab)
- github.com/psf/black/pull/4176 (opens in a new tab)
- github.com/psf/black/pull/5038 (opens in a new tab)
- github.com/psf/black/commit/4937fe6cf241139ddbfc16b0bdbb5b422798909d (opens in a new tab)
- github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:10184 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:13545 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:13553 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-32274 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2447111 (opens in a new tab)
- github.com/psf/black (opens in a new tab)
- github.com/psf/black/releases/tag/26.3.1 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/black/PYSEC-2026-2121.yaml (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32274.json (opens in a new tab)