CVE-2026-41205Mako: Path traversal via double-slash URI prefix in TemplateLookup
Updated under an hour ago ()
Does this affect you?
It affects sqlalchemy mako. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 7.7 HIGH (v4.0, CNA)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
- Weakness (CWE)
- CWE-22
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Modified
- Record last updated
- May 19, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
sqlalchemy mako sqlalchemy:mako (from the name) | before 1.3.11 | CNA record |
sqlalchemy mako sqlalchemy:mako | before 1.3.11 | NVD |
References
- https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmmx-refsource-confirm, mitigation, vendor-advisory
- https://github.com/sqlalchemy/mako/commit/e05ac61989a7fb9dd7dcde6cfd72dc48328719a3x-refsource-misc
- https://github.com/sqlalchemy/mako/releases/tag/rel_1_3_11x-refsource-misc
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.