CVE-2026-41205 json
Mako: Path traversal via double-slash URI prefix in TemplateLookup
published 2026-04-16 6 mo ago modified 2026-10-26 13 d ago also GHSA-v92g-xgxw-vvmm , PYSEC-2026-88 , EUVD-2026-25279
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mako 1.3.11
- sqlalchemy mako 1.3.11
- mako Ubuntu 22.04 LTS 1.1.3+ds1-2ubuntu0.2
- mako Ubuntu 24.04 LTS 1.3.2-1ubuntu0.1
- mako Ubuntu 25.10 1.3.9-1ubuntu0.1
- mako Ubuntu 26.04 LTS 1.3.10-3ubuntu0.1
- mako Ubuntu Pro 16.04 LTS 1.0.3+ds1-1ubuntu1+esm2
- mako Ubuntu Pro 18.04 LTS 1.0.7+ds1-1ubuntu0.2+esm1
- mako Ubuntu Pro 20.04 LTS 1.1.0+ds1-1ubuntu2.1+esm1
ubuntu advisories UBUNTU-CVE-2026-41205
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Mako openSUSE Tumbleweed 1.3.11-1.1
opensuse advisories openSUSE-SU-2026:10616-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41205 updated cvss 5.9
mako: Mako: Information disclosure via path traversal vulnerability
-
Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9 Red Hat Enterprise Linux 8 resource-agents, resource-agents-gcp, resource-agents-paf, resource-agents-aliyun Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-training-cuda128-torch29-py312-rhel9 Red Hat Quay 3 quay/quay-rhel8, quay/quay-rhel9 Red Hat Satellite 6 satellite/iop-host-inventory-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P |
| CNA | 4.0 | 7.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mako | <1.3.11 |
1.3.11 |
Affected products
- sqlalchemy mako
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3
web
-
github.com
/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm
web, mitigation, vendor-advisory, advisory
-
github.com
/sqlalchemy/mako/releases/tag/rel_1_3_11
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-41205
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/mako/PYSEC-2026-88.yaml
web
-
github.com
/sqlalchemy/mako
package
Sources
- CVE List CVE-2026-41205
- GitHub Advisory GHSA-v92g-xgxw-vvmm
- NVD CVE-2026-41205
- OSV PYSEC-2026-88
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.