CVE-2026-41205: Mako: Path traversal via double-slash URI prefix in TemplateLookup

Published Apr 23, 2026
·
Updated

Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.gettemplate() 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.gettemplate(). This vulnerability is fixed in 1.3.11.

Other sources

Mako: Path traversal via double-slash URI prefix in TemplateLookup

Microsoft

Affected Software

4 affected componentsFixes available
pypi/mako<1.3.11
SQLAlchemy mako<1.3.11
Microsoft azl3 python-mako 1.2.4-2
Microsoft azl3 python-mako 1.2.4-3

Event History

Apr 23, 2026
CVE Published
via MITRE·06:52 PM
Data Sourced
via MITRE·06:52 PM
DescriptionWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeaknessAffected Software
Apr 25, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:05 AM
DescriptionSeverity
Updated
via Microsoft·08:05 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41205?

CVE-2026-41205 is classified as a critical vulnerability due to its potential for significant unauthorized access to sensitive files.

2

How do I fix CVE-2026-41205?

To mitigate CVE-2026-41205, upgrade Mako to version 1.3.11 or later in your Python environment.

3

What types of systems are affected by CVE-2026-41205?

CVE-2026-41205 affects applications that utilize Mako versions prior to 1.3.11 within their templating framework.

4

What is the cause of CVE-2026-41205?

CVE-2026-41205 is caused by a path traversal vulnerability in TemplateLookup when a URL begins with a double-slash prefix.

5

Can CVE-2026-41205 lead to data breaches?

Yes, if exploited, CVE-2026-41205 could allow attackers to access sensitive files, leading to potential data breaches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203