CVE-2026-102991
Last modified
CVE-2026-102991 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-102991?
How severe is CVE-2026-102991?
How do I fix CVE-2026-102991?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-10297A vulnerability was identified in itsourcecode Fees Manageme…6.3
- CVE-2026-10298A security flaw has been discovered in ggml-org whisper.cpp …3.3
- CVE-2026-102983Astro is a web framework for content-driven websites. From 5…6.3
- CVE-2026-102984Astro is a web framework for content-driven websites. Prior …8.2
- CVE-2026-10299A weakness has been identified in code-projects Online Hospi…3.8
- CVE-2026-102990basic-ftp is an FTP client for Node.js. Prior to 6.2.1, Clie…8.2
- CVE-2026-102992piscina is a node.js worker pool implementation. Prior to 4.…9.2
- CVE-2026-102993pypdf is a free and open-source pure-python PDF library. Pri…8.7
- CVE-2026-102994pypdf is a free and open-source pure-python PDF library. Pri…8.7
- CVE-2026-102995pypdf is a free and open-source pure-python PDF library. Pri…8.7
- CVE-2026-102996pypdf is a free and open-source pure-python PDF library. Pri…8.7
- CVE-2026-102997pypdf is a free and open-source pure-python PDF library. Pri…8.7
Are you affected by CVE-2026-102991?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
