CVEfocus › CVE database › CVE-2026-44307

CVE-2026-44307Mako: Path traversal via backslash URI on Windows in TemplateLookup

CVSS 8.7 HighEPSS 0.9% (higher than 57% of CVEs)Published 2026-05-12Updated 2026-05-13Assigner: GitHub_M

Mako is a template library written in Python. Prior to 1.3.12, on Windows, a URI using backslash traversal (e.g. \..\..\ secret.txt) bypasses the directory traversal check in Template.__init__ and the posixpath-based normalization in TemplateLookup.get_template(), allowing reads of files outside the configured template directory. This vulnerability is fixed in 1.3.12.

CWE-22

What to do

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

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

1Fixed
13Not affected

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.04makoNot affected
vulnerable_code_not_present
Ubuntu 25.10makoNot affected
vulnerable_code_not_present
Ubuntu 24.04makoNot affected
vulnerable_code_not_present
Ubuntu 22.04makoNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10python3-makoNot affected
Red Hat Enterprise Linux 9python-makoNot affected
Red Hat Enterprise Linux 9python3-makoNot affected
Red Hat Enterprise Linux 8python-makoNot affected
Red Hat Enterprise Linux 8python3-makoNot affected
Red Hat Enterprise Linux 8resource-agentsNot affected
Red Hat Enterprise Linux 8resource-agents-aliyunNot affected
Red Hat Enterprise Linux 8resource-agents-gcpNot affected
Red Hat Enterprise Linux 8resource-agents-pafNot affected
PyPI librarymakoFixed1.3.12GHSA-2h4p-vjrc-8xpq

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.