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

- Severity: High 7.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/E:P`
- 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.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-04-16T21:16:40.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-v92g-xgxw-vvmm, PYSEC-2026-88
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- sqlalchemy mako: < 1.3.11; before 1.3.11
- mako (PyPI): before 1.3.11

## Every score

- GitHub_M: CVSS:4.0 7.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/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A: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/E:P`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3> (web)
- <https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41205> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mako/PYSEC-2026-88.yaml> (web)
- <https://github.com/sqlalchemy/mako> (package)

## Sources

- CVE List: [CVE-2026-41205](https://www.cve.org/CVERecord?id=CVE-2026-41205), CVE Terms of Use, modified 2026-05-20
- GitHub Advisory Database: [GHSA-v92g-xgxw-vvmm](https://github.com/advisories/GHSA-v92g-xgxw-vvmm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-41205](https://nvd.nist.gov/vuln/detail/CVE-2026-41205), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-88](https://osv.dev/vulnerability/PYSEC-2026-88), CC-BY-4.0, modified 2026-05-20

---

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