{"id":"CVE-2026-102991","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-102991","generatedAt":"2026-10-28T02:58:53.295Z","title":"A URI beginning with a drive designator causes ntpath to absorb the traversal segments before the leading dot-dot check, while posixpath resolution can escape the configured template directory.","description":"Mako is a template library written in Python. Prior to 1.4.2, on Windows, TemplateLookup.get_template() in mako/lookup.py resolves template URIs with posixpath, while Template.__init__() in mako/template.py validates them with os.path, which uses ntpath. A URI beginning with a drive designator causes ntpath to absorb the traversal segments before the leading dot-dot check, while posixpath resolution can escape the configured template directory. An application that passes attacker-controlled template names or include paths can disclose process-readable files on the same volume, and a targeted file containing Mako template syntax may also be parsed and executed as a template. Raw URL paths are generally normalized before reaching this form, but query strings, form or JSON bodies, route parameters, and dynamic include expressions can preserve it. This issue is fixed in version 1.4.2.","published":"2026-09-30T20:17:27.000Z","lastModified":"2026-09-30T20:17:27.000Z","status":"Deferred","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N"},"cwe":["CWE-22"],"affected":[],"epss":{"score":0.00356,"percentile":0.29083,"date":"2026-10-26","history":[{"date":"2026-10-01","score":0.00411,"percentile":0.32972}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.36%). Track it; it rarely justifies an emergency change on its own."},"changes":[{"kind":"new","label":"New CVE","at":"2026-09-30T20:17:27.000Z","detail":{"score":"6.5","severity":"MEDIUM","publishedAt":"2026-09-30T20:17:26.547Z"},"summary":"New CVE, medium severity (CVSS 6.5)."}],"references":[{"url":"https://github.com/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e08","source":"security-advisories@github.com"},{"url":"https://github.com/sqlalchemy/mako/issues/441","source":"security-advisories@github.com"},{"url":"https://github.com/sqlalchemy/mako/releases/tag/rel_1_4_2","source":"security-advisories@github.com"},{"url":"https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx","source":"security-advisories@github.com"},{"url":"https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-102991","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}