Skip to content
OpenAdvisories
High · 7.7 CVE-2026-41205 EUVD-2026-25279GHSA-v92g-xgxw-vvmmPYSEC-2026-88

Mako: Path traversal via double-slash URI prefix in TemplateLookup

Published Apr 23, 2026 · Updated May 20, 2026 · Assigned by GitHub_M

Description

Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.get_template() is vulnerable to path traversal when a URI starts with // (e.g., //../../../secret.txt). The root cause is an inconsistency between two slash-stripping implementations. Any file readable by the process can be returned as rendered template content when an application passes untrusted input directly to TemplateLookup.get_template(). This vulnerability is fixed in 1.3.11.

Affected products

VendorProductAffectedFixed
sqlalchemy mako < 1.3.11 —

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.

ReleasePackageFixed inAdvisory
Debian 14 mako No fix yet —
Debian 13 mako No fix yet —
Debian 12 mako No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS mako 1.3.10-3ubuntu0.1 —
Ubuntu 25.10 mako 1.3.9-1ubuntu0.1 —
Ubuntu 24.04 LTS mako 1.3.2-1ubuntu0.1 —
Ubuntu 22.04 LTS mako 1.1.3+ds1-2ubuntu0.2 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS mako 1.1.0+ds1-1ubuntu2.1+esm1 —
Ubuntu Pro 18.04 LTS mako 1.0.7+ds1-1ubuntu0.2+esm1 —
Ubuntu Pro 16.04 LTS mako 1.0.3+ds1-1ubuntu1+esm2 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Mako 1.3.11-1.1 openSUSE-SU-2026:10616-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-mako +1 1.1.4-3.amzn2023.0.4 ALAS2023-2026-1846
Amazon Linux 2 python-mako 0.8.1-2.amzn2.0.2 ALAS2-2026-3333

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-mako 1.2.4-3 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling airflow-3 3.2.1-r0 —
Wolfi rolling jupyter-base-notebook 7.5.5-r4 —
Wolfi rolling open-webui 0.8.12-r4 —
Wolfi rolling superset-6.0 6.0.0-r9 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mako < 1.3.11 1.3.11 GHSA-v92g-xgxw-vvmm

Advisories 3

References