Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Mako
  4. ›
  5. CVE-2026-44307

CVE-2026-44307: Mako vulnerable to path traversal via backslash URI on Windows in TemplateLookup

May 6, 2026 (updated May 13, 2026)

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.

References

  • github.com/advisories/GHSA-2h4p-vjrc-8xpq
  • github.com/sqlalchemy/mako/commit/72e10c573ca0fbcbddd4455abca8ce92a61780d7
  • github.com/sqlalchemy/mako/issues/435
  • github.com/sqlalchemy/mako/releases/tag/rel_1_3_12
  • github.com/sqlalchemy/mako/security/advisories/GHSA-2h4p-vjrc-8xpq
  • nvd.nist.gov/vuln/detail/CVE-2026-44307

Code Behaviors & Features

Detect and mitigate CVE-2026-44307 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.3.12

Fixed versions

  • 1.3.12

Solution

Upgrade to version 1.3.12 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/Mako/CVE-2026-44307.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:14 +0000.