PyPI package
setuptools 58.5.1 vulnerabilities, and the version that fixes all of them
setuptools 58.5.1 has 5 known vulnerabilities (3 rated high or critical); 84.1.0 fixes all of them.
PyPI (opens in a new tab) describes it as “Most extensible Python build backend with support for C/C++ extension modules”
- Known vulnerabilities
- 5
- 3 rated high or critical
- Released
- Nov 3, 2021
- Latest is 84.2.1
- Licence
- MIT
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
84.1.0 is the closest release with no known vulnerabilities.
Newest 58.x release. Released Nov 4, 2021.
5 known vulnerabilities, worst rated warning84.1.0Upgrade to this
Fixes all 5 known vulnerabilities. Released Oct 19, 2026.
No known vulnerabilitiesLatest release. Released Oct 20, 2026.
No known vulnerabilities
84.1.0 came out on Oct 19, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
5 known vulnerabilities in setuptools 58.5.1
EPSS: top 15%3 rated high or critical. Most serious: CVE-2022-40897, pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS). Upgrading to 84.1.0 fixes all of them.
- WarningOutdated
setuptools 58.5.1 is 26 major versions behind
Latest release is 84.2.1.
Every advisory for setuptools 58.5.1
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2022-40897 on OSV.dev (opens in a new tab)GHSA-r9hx-vwmv-q579EPSS: top 15%
pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)
Fixed in 65.5.1. Published Dec 23, 2022.
CriticalCVE-2024-6345 on OSV.dev (opens in a new tab)GHSA-cx63-2mw6-8hw5EPSS: top 21%
setuptools vulnerable to Command Injection via package URL
Fixed in 70.0.0. Published Jul 15, 2024.
CriticalCVE-2025-47273 on OSV.dev (opens in a new tab)GHSA-5rjg-fvgr-3xxfEPSS: top 25%
setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
Fixed in 78.1.1. Published May 19, 2025.
WarningCVE-2026-59890 on OSV.dev (opens in a new tab)GHSA-h35f-9h28-mq5cEPSS: top 67%
setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+
Fixed in 83.0.0. Published Jul 21, 2026.
LowGHSA-xmj3-9gf7-h52w on OSV.dev (opens in a new tab)
setuptools: Windows path escape via namespace_packages.txt during legacy wheel installation Description
Fixed in 84.1.0. Published Oct 23, 2026.
Is setuptools the only one?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly setuptools 58.5.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.