CVEfocus › CVE database › CVE-2026-41205

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

CVSS 7.7 HighEPSS 0.5% (higher than 40% of CVEs)Published 2026-04-23Updated 2026-05-20Assigner: GitHub_M

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.

CWE-22

What to do

Fixed builds are available from PyPI, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
10Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04makoFixed1.3.10-3ubuntu0.1UBUNTU-CVE-2026-41205
Ubuntu 25.10makoFixed1.3.9-1ubuntu0.1UBUNTU-CVE-2026-41205
Ubuntu 24.04makoFixed1.3.2-1ubuntu0.1UBUNTU-CVE-2026-41205
Ubuntu 22.04makoFixed1.1.3+ds1-2ubuntu0.2UBUNTU-CVE-2026-41205
Ubuntu 20.04makoFix pending1.1.0+ds1-1ubuntu2.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41205
Ubuntu 18.04makoFix pending1.0.7+ds1-1ubuntu0.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41205
Ubuntu 16.04makoFix pending1.0.3+ds1-1ubuntu1+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-41205
Debian 14makoFix pendingDEBIAN-CVE-2026-41205
Debian 13makoFix pendingDEBIAN-CVE-2026-41205
Debian 12makoFix pendingDEBIAN-CVE-2026-41205
Red Hat Enterprise Linux 8resource-agentsFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-aliyunFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-gcpFix pending
Fix deferred
Red Hat Enterprise Linux 8resource-agents-pafFix pending
Fix deferred
PyPI librarymakoFixed1.3.11PYSEC-2026-88

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.