Unknown · Sqlalchemy · CVE-2022-40023
**Name of the Vulnerable Software and Affected Versions**
Sqlalchemy mako versions prior to 1.2.2
**Description**
The issue is related to insufficient input validation when handling regular expressions in the Lexer class, which can be exploited by a remote attacker to launch a denial-of-service attack using specially crafted data. This affects not only Sqlalchemy mako but also babelplugin and linguaplugin.
**Recommendations**
For versions prior to 1.2.2, update to version 1.2.2 or later to resolve the issue.
As a temporary workaround, consider restricting the use of the Lexer class to parse regular expressions until a patch is available.