CVE-2026-145817
MediumCVSS 4.7Summary
Setuptools through 84.2.1 contains an exclusion bypass vulnerability in build_py.exclude_data_files and discovery._Filter because exclude_package_data and find_packages patterns use byte-exact fnmatch without Unicode normalization. NFD file or package names on disk fail to match NFC patterns, so author-excluded data files or packages are silently included in published wheels or source distributions.
Risk Assessment
Unauthorized inclusion of files or packages in distributions can lead to data leakage or introduction of unwanted code into production environments.
Recommendation
Update Setuptools to a version later than 84.2.1, which fixes the exclusion bypass vulnerability.
Other vulnerabilities in Setuptools
See all- GHSA-xmj3-9gf7-h52wLow
On Windows, attacker-controlled content in a wheel's .dist-info/namespace_packages.txt can cause setuptools' legacy wheel installation path to create an __init__.py outside the requested destination_eggdir. The attacker can influence the destination path but not the file contents.
- CVE-2026-59890Medium
In setuptools prior to version 83.0.0, MANIFEST.in directives (exclude, global-exclude, recursive-exclude, prune) were applied without Unicode normalization, allowing on macOS APFS or HFS+ an NFD file name to bypass an NFC exclusion rule and be included in a source distribution.
- CVE-2025-47273High
setuptools prior to version 78.1.1 contains a path traversal vulnerability in PackageIndex. An attacker could write files to arbitrary locations on the filesystem with the permissions of the process running the Python code, which could escalate to remote code execution depending on the context.
Original NVD description (English source)
Setuptools through 84.2.1 contains an exclusion bypass vulnerability in build_py.exclude_data_files and discovery._Filter because exclude_package_data and find_packages patterns use byte-exact fnmatch without Unicode normalization. NFD file or package names on disk fail to match NFC patterns, so author-excluded data files or packages are silently included in published wheels or source distributions.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

