CVE-2026-102991: sqlalchemy mako · Path Traversal
Affects sqlalchemy makoSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium : upgrade to 1.4.2 when convenient.
Data as of 14 Nov 2026, 20:43 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 14 Nov 2026.
What to do
Upgrade sqlalchemy mako to 1.4.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| sqlalchemymako | Affected
| Fixed in
|
PyPImakopkg:pypi/makoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
This vulnerability is fixed in Mako version 1.4.2. Users should upgrade to version 1.4.2 or later to remediate this issue. No other vendor advisories indicate alternative mitigations or that no action is required.
Description
CVE-2026-102991 is a path traversal vulnerability in the Mako template library for Python, affecting versions prior to 1.4.2 on Windows. The issue arises because TemplateLookup.get_template() uses posixpath to resolve template URIs, while Template.__init__() validates them with os.path (ntpath on Windows). This mismatch allows crafted template URIs with drive designators to bypass directory restrictions, potentially exposing readable files and enabling execution of attacker-controlled templates. The vulnerability is fixed in version 1.4.2.
References
- github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx (opens in a new tab)
- github.com/sqlalchemy/mako/issues/441 (opens in a new tab)
- github.com/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e08 (opens in a new tab)
- github.com/sqlalchemy/mako/releases/tag/rel_1_4_2 (opens in a new tab)