Vulnerability · Published Apr 23, 2026 · Assigned by GitHub_M

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

High 7.7

In plain English

A high-severity path traversal in mako from sqlalchemy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)0.4%top 70.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12makono fix listedDEBIAN-CVE-2026-41205
Debian:13makono fix listedDEBIAN-CVE-2026-41205
Debian:14makono fix listedDEBIAN-CVE-2026-41205
PyPImako1.3.11GHSA-v92g-xgxw-vvmm
PyPImako1.3.11PYSEC-2026-88
Ubuntu:22.04:LTSmako1.1.3+ds1-2ubuntu0.2UBUNTU-CVE-2026-41205
Ubuntu:24.04:LTSmako1.3.2-1ubuntu0.1UBUNTU-CVE-2026-41205
Ubuntu:25.10mako1.3.9-1ubuntu0.1UBUNTU-CVE-2026-41205
Ubuntu:26.04:LTSmako1.3.10-3ubuntu0.1UBUNTU-CVE-2026-41205

Affected products (as reported)

VendorProductVersions
sqlalchemy mako < 1.3.11

Weakness: CWE-22 · 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

References