CVE-2022-40897: Python Setuptools
Medium severity, CVSS 5.9. EPSS: 2.3% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for the versions it affects. If you run one, update to it.
- Python Setuptools, before 65.5.1: fixed in 65.5.1
Affected products
- Python Setuptools: before 65.5.1 (fixed in 65.5.1)
Affected packages
- setuptools (PyPI)
Published 2022-12-23. Last modified 2026-06-17.