Skip to content
OpenAdvisories
High · 8.7 CVE-2026-44307 EUVD-2026-29867GHSA-2h4p-vjrc-8xpqPYSEC-2026-2617

Mako: Path traversal via backslash URI on Windows in TemplateLookup

Published May 12, 2026 · Updated May 13, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
sqlalchemy mako < 1.3.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling airflow-3 3.2.1-r3 —
Wolfi rolling reflex 0.9.3-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mako < 1.3.12 1.3.12 GHSA-2h4p-vjrc-8xpq

References