CVE-2026-44307: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sqlalchemy mako
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.
AI Analysis
Technical Summary
Mako, a Python template library, prior to version 1.3.12, contains a path traversal vulnerability (CWE-22) on Windows platforms. The issue arises because the directory traversal check in Template.__init__ and the normalization in TemplateLookup.get_template() rely on posixpath-based logic, which does not correctly handle Windows backslash (\) traversal sequences. This allows an attacker to craft a URI with backslash traversal (e.g., \..\..\secret.txt) to read files outside the configured template directory. The vulnerability is addressed in Mako version 1.3.12.
Potential Impact
An attacker can read arbitrary files outside the intended template directory on Windows systems using Mako versions prior to 1.3.12. This can lead to unauthorized disclosure of sensitive information. The CVSS 4.0 base score is 8.7 (high severity), indicating network exploitable without privileges or user interaction, with high impact on confidentiality.
Mitigation Recommendations
Upgrade Mako to version 1.3.12 or later, where this path traversal vulnerability is fixed. Since the vendor advisory states the issue is resolved in 1.3.12, applying this official fix fully mitigates the vulnerability. No additional mitigations are specified or required.
CVE-2026-44307: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sqlalchemy mako
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.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Mako, a Python template library, prior to version 1.3.12, contains a path traversal vulnerability (CWE-22) on Windows platforms. The issue arises because the directory traversal check in Template.__init__ and the normalization in TemplateLookup.get_template() rely on posixpath-based logic, which does not correctly handle Windows backslash (\) traversal sequences. This allows an attacker to craft a URI with backslash traversal (e.g., \..\..\secret.txt) to read files outside the configured template directory. The vulnerability is addressed in Mako version 1.3.12.
Potential Impact
An attacker can read arbitrary files outside the intended template directory on Windows systems using Mako versions prior to 1.3.12. This can lead to unauthorized disclosure of sensitive information. The CVSS 4.0 base score is 8.7 (high severity), indicating network exploitable without privileges or user interaction, with high impact on confidentiality.
Mitigation Recommendations
Upgrade Mako to version 1.3.12 or later, where this path traversal vulnerability is fixed. Since the vendor advisory states the issue is resolved in 1.3.12, applying this official fix fully mitigates the vulnerability. No additional mitigations are specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-05T19:00:06.021Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a03a7e4cbff5d86101ff979
Added to database: 05/12/2026, 22:21:24 UTC
Last enriched: 05/12/2026, 22:36:20 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 78
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.