Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 54%

CVE-2026-44307: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in sqlalchemy mako

0
High
VulnerabilityCVE-2026-44307cvecve-2026-44307cwe-22
Published: 05/12/2026 (05/12/2026, 21:53:52 UTC)
Source: CVE Database V5
Vendor/Project: sqlalchemy
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

mako
pkg:pypi/mako
Affected versions
<1.3.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 22:36:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses