High severity · published Apr 23, 2026
CVE-2026-41205
Mako: Path traversal via double-slash URI prefix in TemplateLookup
7.5
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MA
mako · sqlalchemy
< 1.3.11 · source: vendor, NVD
Affected product
MA
mako
sqlalchemy
More from mako
8.7
CVE-2026-44307
Mako: Path traversal via backslash URI on Windows in TemplateLookup
7.5
CVE-2022-40023
Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse
6.5
CVE-2026-102991
Mako: Path traversal via drive-letter URI on Windows in TemplateLookup