{"cve":"CVE-2022-40023","nvd":{"published":"2022-09-07T13:15:09.953","modified":"2026-06-17T05:00:47.023","status":"Modified","description":"Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. This also affects babelplugin and linguaplugin.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333"],"references":["https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21","https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c","https://github.com/sqlalchemy/mako/issues/366","https://lists.debian.org/debian-lts-announce/2022/09/msg00026.html","https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/"],"products":["debian:debian_linux","sqlalchemy:mako"],"source":"nvd","synced_at":"2026-10-19T21:35:14.992143698+00:00"},"epss":{"cve":"CVE-2022-40023","score":0.02174,"percentile":0.82316,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v973-fxgf-6xhp","url":"https://osv.dev/vulnerability/GHSA-v973-fxgf-6xhp","summary":"mako is vulnerable to Regular Expression Denial of Service","modified":"2025-12-03T15:46:59.399133Z","packages":[{"ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":["<1.2.2"],"fixed":["1.2.2"]}]},{"id":"PYSEC-2022-260","url":"https://osv.dev/vulnerability/PYSEC-2022-260","summary":"","modified":"2023-11-08T04:10:22.118239Z","packages":[{"ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":["<1.2.2"],"fixed":["1.2.2"]}]}],"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."]}