Directory Traversal Affecting mako package, versions <1.1.0+ds1-1ubuntu2.1+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.38% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-MAKO-16237604
  • published4 May 2026
  • disclosed23 Apr 2026

Introduced: 23 Apr 2026

CVE-2026-41205  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 mako to version 1.1.0+ds1-1ubuntu2.1+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mako package and not the mako package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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 Base Scores

version 3.1