CVE-2026-102991 affecting package python-mako 1.2.4-3
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.
- Products
- python-mako
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-102991
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:04 UTC · Revision 1
Source evidence
CVE-2026-102991 affecting package python-mako 1.2.4-3
core-osv · Original sourcePublished 30 Sept 2026, 20:17 UTC
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.
osv:AZL-105645
python-mako
Fixed versions: Not specified
Complete source record
{
"id": "f351f7968ae93070e43c68ee72455b5fa62701013e3f12476e830cd30fb454fc",
"url": "https://osv.dev/vulnerability/AZL-105645",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2026-102991 affecting package python-mako 1.2.4-3",
"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.",
"evidence": "osv:AZL-105645",
"products": [
{
"name": {
"value": "python-mako",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "AZL-105645",
"aliases": [
"AZL-105645"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.2.4-3"
}
]
}
],
"package": {
"name": "python-mako",
"purl": "pkg:rpm/azure-linux/python-mako",
"ecosystem": "Azure Linux:3"
},
"database_specific": {
"source": "https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-105645.json"
}
}
],
"modified": "2026-10-15T05:37:09Z",
"provider": "osv",
"upstream": [
"CVE-2026-102991"
],
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2026-102991"
]
},
"related_cves": [
{
"value": "CVE-2026-102991",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 321345,
"published_at": "2026-09-30T20:17:26+00:00"
}