Skip to main content

Mako

3 CVEs product

Monthly

CVE-2026-41205 Apr 23, 19:17 PyPI HIGH PATCH GHSA This Week

Arbitrary file read in Mako (the Python template library maintained under the SQLAlchemy project) affects all versions prior to 1.3.11, where TemplateLookup.get_template() mishandles URIs beginning with a double slash (e.g. //../../../etc/passwd). Because get_template() strips all leading slashes while Template.__init__ stripped only one, the 'relative outside of root' safety check is bypassed, letting any file readable by the process be returned as rendered template content when an application feeds untrusted input into get_template(). CVSS 4.0 rates it 7.7 (confidentiality-only); it is not in CISA KEV and EPSS is very low (0.05%), but the CVSS exploit-maturity flag E:P and the vendor's published test cases indicate proof-of-concept exploit code exists.

Python Path Traversal Mako Sqlalchemy
NVD GitHub VulDB
CVSS 4.0
7.7
EPSS
0.0%
CVE-2026-102991 Sep 30, 19:47 PyPI MEDIUM PATCH GHSA This Month

Path traversal in Mako before 1.4.2 on Windows allows an application that passes attacker-controlled template names or include paths to TemplateLookup.get_template() to read process-readable files outside the configured template directory, and in limited cases to parse and execute a targeted same-volume file as a Mako template. The flaw is unauthenticated per the CVSS vector (AV:N/PR:N) but high-complexity (AC:H) because the malicious URI must reach the lookup un-normalized - realistic channels are query strings, form/JSON bodies, route parameters, and dynamic include expressions - and Windows-only, since Linux/macOS use posixpath consistently; publicly available exploit code exists, with no CISA KEV listing. CISA's SSVC rates exploitation as PoC, automatable: no, technical impact partial, making this a real but conditional issue concentrated in Windows deployments that echo raw user input into template resolution.

Windows Python Path Traversal Red Hat Mako
NVD GitHub
CVSS 3.1
6.5
EPSS
0.4%
CVE-2022-40023 Sep 07, 13:15 PyPI HIGH POC PATCH This Week

Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.

Denial Of Service Debian Debian Linux Mako Sqlalchemy
NVD GitHub
CVSS 3.1
7.5
EPSS
1.7%
EPSS 0% CVSS 7.7
HIGH PATCH This Week

Arbitrary file read in Mako (the Python template library maintained under the SQLAlchemy project) affects all versions prior to 1.3.11, where TemplateLookup.get_template() mishandles URIs beginning with a double slash (e.g. //../../../etc/passwd). Because get_template() strips all leading slashes while Template.__init__ stripped only one, the 'relative outside of root' safety check is bypassed, letting any file readable by the process be returned as rendered template content when an application feeds untrusted input into get_template(). CVSS 4.0 rates it 7.7 (confidentiality-only); it is not in CISA KEV and EPSS is very low (0.05%), but the CVSS exploit-maturity flag E:P and the vendor's published test cases indicate proof-of-concept exploit code exists.

Python Path Traversal Mako +1
NVD GitHub VulDB
EPSS 0% CVSS 6.5
MEDIUM PATCH This Month

Path traversal in Mako before 1.4.2 on Windows allows an application that passes attacker-controlled template names or include paths to TemplateLookup.get_template() to read process-readable files outside the configured template directory, and in limited cases to parse and execute a targeted same-volume file as a Mako template. The flaw is unauthenticated per the CVSS vector (AV:N/PR:N) but high-complexity (AC:H) because the malicious URI must reach the lookup un-normalized - realistic channels are query strings, form/JSON bodies, route parameters, and dynamic include expressions - and Windows-only, since Linux/macOS use posixpath consistently; publicly available exploit code exists, with no CISA KEV listing. CISA's SSVC rates exploitation as PoC, automatable: no, technical impact partial, making this a real but conditional issue concentrated in Windows deployments that echo raw user input into template resolution.

Windows Python Path Traversal +2
NVD GitHub
EPSS 2% CVSS 7.5
HIGH POC PATCH This Week

Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.

Denial Of Service Debian Debian Linux +2
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy