CVE-2026-44307 Details
Description
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.
A path traversal vulnerability has been identified in the Mako template library for Python, affecting versions prior to 1.3.12. On Windows systems, URIs containing backslash traversal (such as '\..\secret.txt') can bypass directory traversal checks and the normalization process based on posixpath. This flaw allows unauthorized access to files outside the designated template directory. The issue arises because posixpath treats backslashes as literal characters, while Windows file handling interprets them as path separators, creating a loophole that can be exploited to read sensitive files.
Users can update to Mako version 1.3.12, which addresses the vulnerability by normalizing backslashes to forward slashes before any path operations, ensuring consistent behavior across different operating systems.
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.
Volerion
Assessed May 12, 2026CISA-ADP
Assessed May 13, 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sqlalchemy/mako/commit/72e10c573ca0fbcbddd4455abca8ce92a61780d7 | [email protected] | Source CodeVendor |
| https://github.com/sqlalchemy/mako/issues/435 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_12 | [email protected] | Release NotesVendor |
| https://github.com/sqlalchemy/mako/security/advisories/GHSA-2h4p-vjrc-8xpq | [email protected] | AdvisoryRemedyVendor |
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 |
|---|---|
| Mako | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | New CVE Received | [email protected] |
Volerion