{"cve":"CVE-2022-40897","nvd":{"published":"2022-12-23T00:15:13.987","modified":"2026-06-17T05:02:12.993","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9},"cwes":["CWE-1333"],"references":["https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/"],"products":["python:setuptools"],"source":"nvd","synced_at":"2026-10-19T21:37:31.370122805+00:00"},"epss":{"cve":"CVE-2022-40897","score":0.02632,"percentile":0.85537,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-r9hx-vwmv-q579","url":"https://osv.dev/vulnerability/GHSA-r9hx-vwmv-q579","summary":"pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)","modified":"2026-08-07T08:12:25.181519588Z","packages":[{"ecosystem":"PyPI","name":"setuptools","purl":"pkg:pypi/setuptools","ranges":["<65.5.1"],"fixed":["65.5.1"]}]},{"id":"PYSEC-2022-43012","url":"https://osv.dev/vulnerability/PYSEC-2022-43012","summary":"","modified":"2026-06-10T17:02:40.148961359Z","packages":[{"ecosystem":"PyPI","name":"setuptools","purl":"pkg:pypi/setuptools","ranges":["<65.5.1"],"fixed":["65.5.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}