{"cve":"CVE-2022-40896","nvd":{"published":"2023-07-19T15:15:10.007","modified":"2026-06-17T05:02:12.853","status":"Modified","description":"A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5},"cwes":["CWE-434"],"references":["https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO/","https://pypi.org/project/Pygments/","https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/"],"products":["pygments:pygments"],"source":"nvd","synced_at":"2026-10-19T21:38:35.729974749+00:00"},"epss":{"cve":"CVE-2022-40896","score":0.00519,"percentile":0.44102,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mrwq-x4v8-fh7p","url":"https://osv.dev/vulnerability/GHSA-mrwq-x4v8-fh7p","summary":"Pygments vulnerable to ReDoS","modified":"2024-10-24T22:27:47.389299Z","packages":[{"ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":["<2.15.0"],"fixed":["2.15.0"]}]},{"id":"PYSEC-2023-117","url":"https://osv.dev/vulnerability/PYSEC-2023-117","summary":"","modified":"2026-06-10T17:01:44.543779692Z","packages":[{"ecosystem":"PyPI","name":"pygments","purl":"pkg:pypi/pygments","ranges":["<2.15.1"],"fixed":["2.15.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."]}