Path traversal in Mako - CVE-2026-41205
Published: April 28, 2026
Mako
SQLAlchemy
Description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in TemplateLookup.get_template() when processing a URI that starts with a double-slash prefix. A remote attacker can supply a specially crafted template URI to disclose sensitive information.
Exploitation requires an application to pass untrusted input directly to the vulnerable API, and HTTP-based exploitation depends on a server that does not normalize double-slash-prefixed paths.