Mako: Path traversal via double-slash URI prefix in TemplateLookup
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 5 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sqlalchemy | mako | before 1.3.11 | 1.3.11 | Patch available | CNA |
| — | Mako (PyPI) | before 1.3.11 | 1.3.11 | Patch available | GHSA-v92g-xgxw-vvmm |
- mako Vendorsqlalchemy Affected before 1.3.11 Fixed in 1.3.11 Patch available CNA
- Mako (PyPI) Vendor— Affected before 1.3.11 Fixed in 1.3.11 Patch available GHSA-v92g-xgxw-vvmm
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:* | before 1.3.11 | Vulnerable | sqlalchemy |
- cpe:2.3:a:sqlalchemy:mako:*:*:*:*:*:*:*:* Versions before 1.3.11 Vulnerable ·sqlalchemy
Remediation
- Fix · CNA mako (sqlalchemy) Fixed in 1.3.11
- Fix · GHSA-v92g-xgxw-vvmm Mako (PyPI) Fixed in 1.3.11 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Applications 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat Quay 3 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41205
- 2026-10-03 Alias added: GHSA-v92g-xgxw-vvmm
References
Advisory 2
More sqlalchemy Mako vulnerabilities
- TI-2022-18951 Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-41205 · CVE Program
- CVE-2026-41205 · NVD
- FIRST EPSS
- GHSA-v92g-xgxw-vvmm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41205 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences