{"id":"UBUNTU-CVE-2026-41205","details":"Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.get_template() is vulnerable to path traversal when a URI starts with // (e.g., //../../../secret.txt). The root cause is an inconsistency between two slash-stripping implementations. Any file readable by the process can be returned as rendered template content when an application passes untrusted input directly to TemplateLookup.get_template(). This vulnerability is fixed in 1.3.11.","modified":"2026-05-20T16:12:58.792072897Z","published":"2026-04-24T00:00:00Z","related":["USN-8234-1"],"upstream":["CVE-2026-41205"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41205"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41205"},{"type":"REPORT","url":"https://github.com/sqlalchemy/mako/security/advisories/GHSA-v92g-xgxw-vvmm"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8234-1"}],"affected":[{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.3+ds1-1ubuntu1+esm2"}]}],"versions":["1.0.2+ds1-1","1.0.3+ds1-1","1.0.3+ds1-1ubuntu1","1.0.3+ds1-1ubuntu1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"python-mako","binary_version":"1.0.3+ds1-1ubuntu1+esm2"},{"binary_version":"1.0.3+ds1-1ubuntu1+esm2","binary_name":"python3-mako"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.7+ds1-1ubuntu0.2+esm1"}]}],"versions":["1.0.7+ds1-1","1.0.7+ds1-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mako","binary_version":"1.0.7+ds1-1ubuntu0.2+esm1"},{"binary_name":"python3-mako","binary_version":"1.0.7+ds1-1ubuntu0.2+esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0+ds1-1ubuntu2.1+esm1"}]}],"versions":["1.0.7+ds1-1","1.1.0+ds1-1","1.1.0+ds1-1ubuntu1","1.1.0+ds1-1ubuntu2","1.1.0+ds1-1ubuntu2.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1.1.0+ds1-1ubuntu2.1+esm1","binary_name":"python-mako"},{"binary_name":"python3-mako","binary_version":"1.1.0+ds1-1ubuntu2.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.3+ds1-2ubuntu0.2"}]}],"versions":["1.1.3+ds1-2","1.1.3+ds1-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.3+ds1-2ubuntu0.2","binary_name":"python3-mako"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2-1ubuntu0.1"}]}],"versions":["1.2.4+ds-2","1.3.1-1","1.3.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.2-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mako?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.9-1ubuntu0.1"}]}],"versions":["1.3.8-2","1.3.9-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.9-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}},{"package":{"name":"mako","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mako?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.10-3ubuntu0.1"}]}],"versions":["1.3.9-1","1.3.10-3","1.3.10-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mako","binary_version":"1.3.10-3ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41205.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}