{"id":"CVE-2022-40023","published":"2022-09-07T00:00:00Z","modified":"2025-12-03T06:05:04Z","title":"Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0232,"percentile":0.83866,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/sqlalchemy/mako/issues/366","tags":[]},{"url":"https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c","tags":[]},{"url":"https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21","tags":[]},{"url":"https://pyup.io/vulnerabilities/CVE-2022-40023/50870/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00026.html","tags":["mailing-list"]},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00004.html","tags":[]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":16.77}]},"affected":[{"ecosystem":"PyPI","package":"mako","vulnerableRanges":["<1.2.2"],"patched":["1.2.2"],"from":["GHSA-v973-fxgf-6xhp","PYSEC-2022-260"],"provenance":"source"}],"summary":{"text":"The flaw is a Regular expression Denial of Service issue in the Lexer class of Mako, the templating library, affecting releases before 1.2.2, and it also impacts the babelplugin and linguaplugin components.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:03Z"},"euvd":{"id":"EUVD-2022-0149","exploited":false,"provenance":"source"}}