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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-05-06T21:45:16.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-2h4p-vjrc-8xpq, PYSEC-2026-2617
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sqlalchemy mako: < 1.3.12
- mako (PyPI): before 1.3.12

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/sqlalchemy/mako/security/advisories/GHSA-2h4p-vjrc-8xpq> (web)
- <https://github.com/sqlalchemy/mako/issues/435> (web)
- <https://github.com/sqlalchemy/mako/commit/72e10c573ca0fbcbddd4455abca8ce92a61780d7> (web)
- <https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_12> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44307> (advisory)
- <https://github.com/sqlalchemy/mako> (package)
- <https://pypi.org/project/mako> (package)
- <https://github.com/advisories/GHSA-2h4p-vjrc-8xpq> (advisory)

## Sources

- CVE List: [CVE-2026-44307](https://www.cve.org/CVERecord?id=CVE-2026-44307), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-2h4p-vjrc-8xpq](https://github.com/advisories/GHSA-2h4p-vjrc-8xpq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44307](https://nvd.nist.gov/vuln/detail/CVE-2026-44307), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2617](https://osv.dev/vulnerability/PYSEC-2026-2617), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-44307 · Whole record: https://cve.day/CVE-2026-44307.json · Rebuilt by cve.day 2026-11-25T22:59:21.513Z
