Setuptools Python Setuptools

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Python Setuptools.

By the Year

In 2026 there have been 1 vulnerability in Python Setuptools with an average score of 6.1 out of ten. Last year, in 2025 Setuptools had 1 security vulnerability published. At the current rates, it appears that the number of vulnerabilities last year and this year may equal out. Last year, the average CVE base score was greater by 2.70




Year Vulnerabilities Average Score
2026 1 6.10
2025 1 8.80
2024 1 0.00
2023 0 0.00
2022 1 5.90

It may take a day or so for new Setuptools vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Python Setuptools Security Vulnerabilities

setuptools <83 FileList Unicode normalization bypass (CVE-2026-59890)
CVE-2026-59890 6.1 - Medium - July 08, 2026

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in exclude, global-exclude, recursive-exclude, and prune directives by matching compiled glob patterns against on-disk file names without Unicode normalization, so on macOS APFS or HFS+ an NFD file name could bypass an NFC exclusion rule and be packed into a source distribution. This issue is fixed in version 83.0.0.

Improper Handling of Unicode Encoding

setuptools <78.1.1 Path Traversal via PackageIndex allows file write
CVE-2025-47273 8.8 - High - May 17, 2025

setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. A path traversal vulnerability in `PackageIndex` is present in setuptools prior to version 78.1.1. An attacker would be allowed to 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. Version 78.1.1 fixes the issue.

Directory traversal

setuptools <=69.1.1 RCE via download URL injection
CVE-2024-6345 - July 15, 2024

A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system. The issue is fixed in version 70.0.

Code Injection

setuptools <65.5.1 ReDoS in package_index.py
CVE-2022-40897 5.9 - Medium - December 23, 2022

Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in package_index.py.

ReDoS

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Python Setuptools or by Python? Click the Watch button to subscribe.

Python
Vendor

subscribe