Mako
Mako: Path traversal via backslash URI on Windows in TemplateLookup
Mako is a template library written in Python. Prior to 1.3.12, on Windows, a URI using backslash traversal (e.g. \..\..\ secret.txt) bypasses the directory traversal check in Template.__init__ and the posixpath-based normalization in TemplateLookup.get_template(), allowing reads of files outside the configured template directory. This vulnerability is fixed in 1.3.12.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.3.12
Fixed in 1.3.12
Mitigation
Upgrade mako to 1.3.12 or later.
References
- Vendor advisory github.com/sqlalchemy/mako/security/advisories…
- Patch github.com/sqlalchemy/mako/commit/72e10c573ca0…
- Release notes github.com/sqlalchemy/mako/releases/tag/rel_1_…
Timeline
Days relative to CVE publicationFirst public PoC 7.7 days after publication; not in CISA KEV. First PoC: thburghout/dependabot-pip-mako-case-poc (created 20 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| thburghout/dependabot-pip-mako-case-poc | 20 May 2026 +7.7 d | 0 | PoC via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.