Directory Traversal Affecting python-mako package, versions <0:0.8.1-2.amzn2.0.2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux 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-AMZN2-PYTHONMAKO-17286448
  • published10 Jun 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 Amazon-Linux:2 python-mako to version 0:0.8.1-2.amzn2.0.2 or higher.
This issue was patched in ALAS2-2026-3333.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-mako package and not the python-mako package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 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