Regular Expression Denial of Service in Mako Templates by SQLAlchemy
CVE-2022-40023
7.5HIGH
What is CVE-2022-40023?
The Mako templating engine, used with SQLAlchemy, is susceptible to Regular Expression Denial of Service when utilizing the Lexer class for parsing. This vulnerability can lead to excessive resource consumption, resulting in performance degradation and potential denial of service in applications relying on Mako for template rendering. Affected versions include Mako before 1.2.2, with implications for projects utilizing this package, along with related plugins like babelplugin and linguaplugin. Best practices for mitigation involve upgrading to the patched version of Mako or applying recommended workarounds.
