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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | mako | All versions before 1.0.3+ds1-1ubuntu1+esm2 (fixed in 1.0.3+ds1-1ubuntu1+esm2) |
| Ubuntu:Pro:18.04:LTS | mako | All versions before 1.0.7+ds1-1ubuntu0.2+esm1 (fixed in 1.0.7+ds1-1ubuntu0.2+esm1) |
| Ubuntu:Pro:20.04:LTS | mako | All versions before 1.1.0+ds1-1ubuntu2.1+esm1 (fixed in 1.1.0+ds1-1ubuntu2.1+esm1) |
| Ubuntu:22.04:LTS | mako | All versions before 1.1.3+ds1-2ubuntu0.2 (fixed in 1.1.3+ds1-2ubuntu0.2) |
| Ubuntu:24.04:LTS | mako | All versions before 1.3.2-1ubuntu0.1 (fixed in 1.3.2-1ubuntu0.1) |
| Ubuntu:25.10 | mako | All versions before 1.3.9-1ubuntu0.1 (fixed in 1.3.9-1ubuntu0.1) |
| Ubuntu:26.04:LTS | mako | All versions before 1.3.10-3ubuntu0.1 (fixed in 1.3.10-3ubuntu0.1) |