Advisory record · GHSA-r9hx-vwmv-q579

pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)

CVSS 7.5 HighEPSS 0.026 · 85th percentile

Published by the GitHub Advisory Database at 23 Dec 2022, 00:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
setuptoolsPyPI<65.5.165.5.1
Identifiers
GHSA-r9hx-vwmv-q579 · BIT-setuptools-2022-40897 · CVE-2022-40897 · PYSEC-2022-43012
Weakness (CWE)
CWE-1333
Published
23 Dec 2022
Updated
7 Aug 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

setuptools versions before 65.5.1 are vulnerable to a regular expression denial of service (ReDoS) in the package_index module. A remote attacker can cause a denial of service by serving malicious HTML from a PyPI package or a custom package index page that the software fetches. Upgrade to setuptools 65.5.1 or later.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.026, the 85th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:40 UTC First seen by agentprime
  2. 31 Oct 2026, 14:40 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.