CVE-2026-44307
Mako is a template library written in Python. Prior to 1.3.12, on …
Mako is a template library written in Python. Prior to 1.3.12, on Windows, a URI using backslash traversal (e.g. \..\..\ secret.txt) bypasses the directory traversal check in Template.__init__ and the posixpath-based normalization in TemplateLookup.get_template(), allowing reads of files outside the configured template directory. This vulnerability is fixed in 1.3.12.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/sqlalchemy/mako/security/advisories/GHSA-2h4p-vjrc-8xpq
- github.com/sqlalchemy/mako/issues/435
- github.com/sqlalchemy/mako/commit/72e10c573ca0fbcbddd4455abca8ce92a61780d7
- github.com/sqlalchemy/mako/releases/tag/rel_1_3_12
- github.com/advisories/GHSA-2h4p-vjrc-8xpq
- nvd.nist.gov/vuln/detail/CVE-2026-44307
- nvd.nist.gov/vuln/detail/CVE-2026-44307
- cve.org/CVERecord?id=CVE-2026-44307
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.