CVE-2026-145817: pypa setuptools · Improper Handling of Unicode Encoding
Affects pypa setuptoolsSource CVE Database V5
Not known to be exploited · CVSS 5.7 Medium.
Data as of 6 Dec 2026, 18:41 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.7 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.7 |
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 6 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| pypasetuptools | Affected
| Fixed in– |
PyPIsetuptoolspkg:pypi/setuptoolsOther 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
Until a fix is available, authors should be aware of this limitation when specifying exclusion patterns and verify the contents of published distributions carefully.
Description
CVE-2026-145817 is a medium severity vulnerability in pypa setuptools up to version 84.2.1. It involves improper handling of Unicode encoding in the exclusion logic of build_py.exclude_data_files and discovery._Filter. Specifically, the exclusion patterns use byte-exact fnmatch without Unicode normalization, causing NFD (Normalization Form D) file or package names on disk to fail matching NFC (Normalization Form C) patterns. This results in author-excluded data files or packages being silently included in published wheels or source distributions.
References
- github.com/pypa/setuptools/blob/v84.2.1/setuptools/command/build_py.py (opens in a new tab)
- github.com/pypa/setuptools/blob/v84.2.1/setuptools/discovery.py (opens in a new tab)
- github.com/pypa/setuptools/pull/5375 (opens in a new tab)
- github.com/pypa/setuptools/pull/5398 (opens in a new tab)
- vulncheck.com/advisories/setuptools-through-84.2.1-exclude-pattern-bypass-via-unicode-normalization-mismatch (opens in a new tab)