ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-41205

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSmako
All versions before 1.0.3+ds1-1ubuntu1+esm2 (fixed in 1.0.3+ds1-1ubuntu1+esm2)
Ubuntu:Pro:18.04:LTSmako
All versions before 1.0.7+ds1-1ubuntu0.2+esm1 (fixed in 1.0.7+ds1-1ubuntu0.2+esm1)
Ubuntu:Pro:20.04:LTSmako
All versions before 1.1.0+ds1-1ubuntu2.1+esm1 (fixed in 1.1.0+ds1-1ubuntu2.1+esm1)
Ubuntu:22.04:LTSmako
All versions before 1.1.3+ds1-2ubuntu0.2 (fixed in 1.1.3+ds1-2ubuntu0.2)
Ubuntu:24.04:LTSmako
All versions before 1.3.2-1ubuntu0.1 (fixed in 1.3.2-1ubuntu0.1)
Ubuntu:25.10mako
All versions before 1.3.9-1ubuntu0.1 (fixed in 1.3.9-1ubuntu0.1)
Ubuntu:26.04:LTSmako
All versions before 1.3.10-3ubuntu0.1 (fixed in 1.3.10-3ubuntu0.1)

References