Vulnerability · Published Apr 23, 2026 · Assigned by GitHub_M
CVE-2026-41205Mako: Path traversal via double-slash URI prefix in TemplateLookup
High 7.7
In plain English
A high-severity path traversal in mako from sqlalchemy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mako | no fix listed | DEBIAN-CVE-2026-41205 |
| Debian:13 | mako | no fix listed | DEBIAN-CVE-2026-41205 |
| Debian:14 | mako | no fix listed | DEBIAN-CVE-2026-41205 |
| PyPI | mako | 1.3.11 | GHSA-v92g-xgxw-vvmm |
| PyPI | mako | 1.3.11 | PYSEC-2026-88 |
| Ubuntu:22.04:LTS | mako | 1.1.3+ds1-2ubuntu0.2 | UBUNTU-CVE-2026-41205 |
| Ubuntu:24.04:LTS | mako | 1.3.2-1ubuntu0.1 | UBUNTU-CVE-2026-41205 |
| Ubuntu:25.10 | mako | 1.3.9-1ubuntu0.1 | UBUNTU-CVE-2026-41205 |
| Ubuntu:26.04:LTS | mako | 1.3.10-3ubuntu0.1 | UBUNTU-CVE-2026-41205 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sqlalchemy | mako | < 1.3.11 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
References
- https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm x_refsource_CONFIRM
- https://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3 x_refsource_MISC
- https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11 x_refsource_MISC