CVE-2026-41205Mako: Path traversal via double-slash URI prefix in TemplateLookup
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.
What to do
Fixed builds are available from PyPI, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | mako | Fixed | 1.3.10-3ubuntu0.1 | UBUNTU-CVE-2026-41205 |
| Ubuntu 25.10 | mako | Fixed | 1.3.9-1ubuntu0.1 | UBUNTU-CVE-2026-41205 |
| Ubuntu 24.04 | mako | Fixed | 1.3.2-1ubuntu0.1 | UBUNTU-CVE-2026-41205 |
| Ubuntu 22.04 | mako | Fixed | 1.1.3+ds1-2ubuntu0.2 | UBUNTU-CVE-2026-41205 |
| Ubuntu 20.04 | mako | Fix pending | 1.1.0+ds1-1ubuntu2.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41205 |
| Ubuntu 18.04 | mako | Fix pending | 1.0.7+ds1-1ubuntu0.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41205 |
| Ubuntu 16.04 | mako | Fix pending | 1.0.3+ds1-1ubuntu1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-41205 |
| Debian 14 | mako | Fix pending | DEBIAN-CVE-2026-41205 | |
| Debian 13 | mako | Fix pending | DEBIAN-CVE-2026-41205 | |
| Debian 12 | mako | Fix pending | DEBIAN-CVE-2026-41205 | |
| Red Hat Enterprise Linux 8 | resource-agents | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-aliyun | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-gcp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | resource-agents-paf | Fix pending Fix deferred | ||
| PyPI library | mako | Fixed | 1.3.11 | PYSEC-2026-88 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sqlalchemy mako: affected: < 1.3.11
References
- https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm
- https://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3
- https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.