CVE-2026-102991 json
Mako: Path traversal via drive-letter URI on Windows in TemplateLookup
published last mo. modified 25d ago also EUVD-2026-90363 , GHSA-5639-2j2p-m4mx , PYSEC-2026-4243
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
Mako is a template library written in Python. Prior to 1.4.2, on Windows, TemplateLookup.get_template() in mako/lookup.py resolves template URIs with posixpath, while Template.__init__() in mako/template.py validates them with os.path, which uses ntpath. A URI beginning with a drive designator causes ntpath to absorb the traversal segments before the leading dot-dot check, while posixpath resolution can escape the configured template directory. An application that passes attacker-controlled template names or include paths can disclose process-readable files on the same volume, and a targeted file containing Mako template syntax may also be parsed and executed as a template. Raw URL paths are generally normalized before reaching this form, but query strings, form or JSON bodies, route parameters, and dynamic include expressions can preserve it. This issue is fixed in version 1.4.2.
Patch / fix
- pypi mako 1.4.2
- sqlalchemy mako 1.4.2
Is CVE-2026-102991 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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-102991 updated cvss 6.5
mako: mako: Information disclosure via path traversal on Windows
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-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
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last mo.
Exploit prediction
0.36% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mako | <1.4.2 |
1.4.2 |
Affected products
- sqlalchemy mako
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e08
web
-
github.com
/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mx
exploit, web
-
github.com
/sqlalchemy/mako/issues/441
web
-
github.com
/sqlalchemy/mako/releases/tag/rel_1_4_2
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-102991
advisory
-
github.com
/sqlalchemy/mako
package
-
pypi.org
/project/mako
package
-
github.com
/advisories/GHSA-5639-2j2p-m4mx
advisory
Sources
- CVE List CVE-2026-102991
- GitHub Advisory GHSA-5639-2j2p-m4mx
- NVD CVE-2026-102991
- OSV PYSEC-2026-4243
Fencer Intel 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.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.