CVE-2026-41205Sqlalchemy Mako
High 7.7 No auth needed
Follow: this CVE · Sqlalchemy · Sqlalchemy Mako We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 4.0
- 7.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 23, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Mako.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mako |
< 1.3.11 |
1.3.11 |
pip install "mako>=1.3.11" |
| PyPI | mako |
< 1.3.11 |
1.3.11 |
pip install "mako>=1.3.11" |
Per OSV / GitHub Advisories (GHSA-v92g-xgxw-vvmm, PYSEC-2026-88). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sqlalchemy | mako | < 1.3.11 |
Official advisories
- python311-Mako-1.3.11-1.1 on GA media · SUSE · openSUSE-SU-2026:10616-1 · Apr 25, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com
- github.com
- github.com Mitigation Vendor Advisory