CVE-2026-41205 Details
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.
A path traversal vulnerability has been identified in the Mako template library for Python, affecting versions through 1.3.10. The issue arises in the TemplateLookup.get_template() method, which improperly handles URIs starting with double slashes. This flaw allows arbitrary file reading, as any file accessible by the process can be retrieved and rendered as a template. The vulnerability is rooted in inconsistent implementations of slash removal, enabling exploitation by bypassing normal path checks. While this issue can be exploited at the library API level, HTTP-based attacks are less likely due to Python's BaseHTTPRequestHandler, which normalizes double-slash prefixes. However, applications using other HTTP servers that do not perform this normalization may still be vulnerable.
Users can upgrade to Mako version 1.3.11 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sqlalchemy mako | < 1.3.11 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | CVE Modified | [email protected] |
| Apr 28, 2026 | Initial Analysis | [email protected] |
| Apr 23, 2026 | New CVE Received | [email protected] |