Skip to main content
CVE-2026-102991VulnerabilityPublished Updated

mako/lookup.py resolves template URIs with posixpath · Prior to 1.4.2, on Windows, TemplateLookup.get_template()

Affects makoSource GCVE Database

0
Compare
Authoritative record:CVE-2026-102991· Medium 6.5

Not known to be exploited · CVSS 6.5 Medium · fixed in 1.4.2 : update mako when convenient.

Data as of 24 Nov 2026, 22:28 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.4.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10makopkg:deb/ubuntu/mako?arch=source&distro=stonkingOther threatsAffected
  • =1.3.10-3build1
  • =1.3.10-3ubuntu0.1
Fixed in–
Ubuntu 26.04 LTSmakopkg:deb/ubuntu/mako?arch=source&distro=resoluteOther threatsAffected
  • 1.3.9-1 – 1.3.10-3ubuntu0.1
4 affected builds
Fixed in–
Ubuntu 24.04 LTSmakopkg:deb/ubuntu/mako?arch=source&distro=nobleOther threatsAffected
  • 1.2.4+ds-2 – 1.3.2-1ubuntu0.1
4 affected builds
Fixed in–
Ubuntu 22.04 LTSmakopkg:deb/ubuntu/mako?arch=source&distro=jammyOther threatsAffected
  • =1.1.3+ds1-2
  • =1.1.3+ds1-2ubuntu0.1
  • =1.1.3+ds1-2ubuntu0.2
Fixed in–
Ubuntu Pro 20.04 LTSmakopkg:deb/ubuntu/mako?arch=source&distro=esm-infra/focalOther threatsAffected
  • 1.0.7+ds1-1 – 1.1.0+ds1-1ubuntu2.1+esm1
6 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSmakopkg:deb/ubuntu/mako?arch=source&distro=esm-infra/bionicOther threatsAffected
  • =1.0.7+ds1-1
  • =1.0.7+ds1-1ubuntu0.2
  • =1.0.7+ds1-1ubuntu0.2+esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…