CVE-2026-102991: sqlalchemy mako Path Traversal
Vulnerability summary
CVE-2026-102991 is a medium (CVSS 6.5) Path Traversal vulnerability in sqlalchemy mako. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 28% of scored vulnerabilities.
Timeline
- 30-09-2026PublishedVulnerability first disclosed.
- 30-09-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard61 products
- airflow-2All versions (No fix recorded)
- airflow-core-2All versions (No fix recorded)
- jupyterhub-k8s-singleuser-sample< 4.4.2-r5
- mlflow-fips< 3.16.1-r1
- nemoAll versions (No fix recorded)
PyPI1 product
- mako< 1.4.2
Sqlalchemy1 product
- mako< 1.4.2
Ubuntu1 product
- makoAll versions (No fix recorded)
Wolfi1 product
- reflex< 0.9.12-r1
5 vendors · 65 products
References
11 links- github.com/sqlalchemy/mako/security/advisories/GHSA-5639-2j2p-m4mxX Refsource CONFIRMWEBREPORTAdvisory
- github.com/sqlalchemy/mako/commit/000ed85e4e48771eff460bf4fc721fb43de80e08X Refsource MISCWEBREPORTFIX
- github.com/sqlalchemy/makoPACKAGE
- pypi.org/project/makoPACKAGE