CVSS 3.1
6.5 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:NMedium (6.5) in sqlalchemy mako. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in mako 1.4.2.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:Nmako (PyPI): fixed in 1.4.2Explain CVE-2026-102991 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-102991?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-102991?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-102991 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| sqlalchemy mako | < 1.4.2 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-5639-2j2p-m4mx | PyPI | mako | <1.4.2 | 1.4.2 |
| PYSEC-2026-4243 | PyPI | mako | <1.4.2 | 1.4.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Ubuntu | 22.04:LTS, 24.04:LTS, 26.04:LTS and 4 more | mako | no fix listed | UBUNTU-CVE-2026-102991 |
| Azure Linux | 3 | python-mako | no fix listed | AZL-105645 |
From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.
Red Hat rates this Moderate.
A moderate severity path traversal flaw was found in Mako, a Python template library. On Windows systems, Mako resolves template URIs using posixpath while validating them using os.path (ntpath on Windows), so a TemplateLookup URI beginning with a drive-letter designator (for example C:/../../secret.txt) bypasses the directory-confinement check and can resolve to files outside the configured template directory anywhere on the same storage volume. A remote attacker who can influence template names or include paths used by an application running Mako on Windows, for example through query strings, form or JSON bodies, route parameters, or dynamic include expressions, could use this flaw to disclose sensitive files readable by the application process on the same volume. If an accessible file contains Mako template syntax, it may also be parsed and executed as a template, potentially leading to unauthorized code execution. The Red Hat severity of Moderate (CVSS 6.5) is consistent with the upstream rating, and exposure is limited to applications running Mako on Windows that pass attacker-controlled values to template lookup or include paths. No Red Hat products are currently listed as affected by this flaw.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. The upstream project has released a fixed version, Mako 1.4.2.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mlflow-rhel9 | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-102991.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.