Advisory

PYSEC-2026-88

Also known as: CVE-2026-41205, GHSA-v92g-xgxw-vvmm

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-04-23 19:17 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

mako

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.11 (ecosystem)

Fixed versions

1.3.11

Fix

  • Fixed version 1.3.11
    pip install --upgrade mako==1.3.11

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences