Live threats

All CVEs / Sqlalchemy

CVE-2022-40023Sqlalchemy Mako

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.2%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Sep 7, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mako.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mako < 1.2.2 1.2.2 pip install "mako>=1.2.2"
PyPI mako < 1.2.2 1.2.2 pip install "mako>=1.2.2"

Per OSV / GitHub Advisories (GHSA-v973-fxgf-6xhp, PYSEC-2022-260). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sqlalchemymako< 1.2.2
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.