Inefficient Regular Expression Complexity Affecting mako package, versions <1.2.2+ds1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.32% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-MAKO-21245963
  • published19 Oct 2026
  • disclosed7 Sept 2022

Introduced: 7 Sep 2022

CVE-2022-40023  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Echo:latest mako to version 1.2.2+ds1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mako package and not the mako package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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 Base Scores

version 3.1