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.
History

Thu, 23 Apr 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title Mako: Path traversal via double-slash URI prefix in TemplateLookup
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7.7, 'vector': '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/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-23T20:20:59.107Z

Reserved: 2026-04-18T02:51:52.974Z

Link: CVE-2026-41205

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-23T19:17:29.270

Modified: 2026-04-23T19:17:29.270

Link: CVE-2026-41205

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.