CVE-2026-41205

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Mako es una biblioteca de plantillas escrita en Python. Antes de la versión 1.3.11, TemplateLookup.get_template() es vulnerable a salto de ruta cuando una URI comienza con // (p. ej., //.. / .. / .. / secret.txt). La causa raíz es una inconsistencia entre dos implementaciones de eliminación de barras diagonales. Cualquier archivo legible por el proceso puede ser devuelto como contenido de plantilla renderizado cuando una aplicación pasa entrada no confiable directamente a TemplateLookup.get_template(). Esta vulnerabilidad está corregida en la versión 1.3.11.

Information

Published : 2026-04-23 19:17

Updated : 2026-10-26 21:10


NVD link : CVE-2026-41205

Mitre link : CVE-2026-41205

CVE.ORG link : CVE-2026-41205


JSON object : View

Products Affected

sqlalchemy

  • mako
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')