CVE-2026-41205
HIGH7.5EPSS 0.09%Mako: Path traversal via double-slash URI prefix in TemplateLookup
Published: 4/16/2026Modified: 5/20/2026
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 (3)
- Debian/makofrom 0
- PyPI/makofrom 0, < 1.3.11
- PyPI/makofrom 0, < 1.3.11
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-41205
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-41205
- PATCHhttps://github.com/sqlalchemy/mako
- WEBhttps://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3
- WEBhttps://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11
- WEBhttps://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm