{"cve":"CVE-2026-41205","nvd":{"published":"2026-04-23T19:17:29.270","modified":"2026-10-26T21:10:00.170","status":"Modified","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.","cvss_v4":{"vector":"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","score":7.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3","https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11","https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm"],"products":["sqlalchemy:mako"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-41205","score":0.00361,"percentile":0.29633,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-v92g-xgxw-vvmm","url":"https://osv.dev/vulnerability/GHSA-v92g-xgxw-vvmm","summary":"Mako: Path traversal via double-slash URI prefix in TemplateLookup","modified":"2026-09-10T03:51:03.377000392Z","packages":[{"ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":["<1.3.11"],"fixed":["1.3.11"]}]},{"id":"PYSEC-2026-88","url":"https://osv.dev/vulnerability/PYSEC-2026-88","summary":"","modified":"2026-05-20T09:19:06.232960Z","packages":[{"ecosystem":"PyPI","name":"mako","purl":"pkg:pypi/mako","ranges":["<1.3.11"],"fixed":["1.3.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}