Mako@0.7.1

A super-fast templating language that borrows the best ideas from the existing templating languages.

  • latest version

    1.4.3

  • latest non vulnerable version

  • first published

    19 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the Mako package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Directory Traversal

    Affected versions of this package are vulnerable to Directory Traversal in the get_template function on Windows systems due to improper normalization of backslash characters in URIs. An attacker can access and read files outside the intended template directory by supplying specially crafted template names containing backslash traversal sequences.

    How to fix Directory Traversal?

    Upgrade Mako to version 1.3.12 or higher.

    [,1.3.12)
    • H
    Directory Traversal

    Affected versions of this package are vulnerable to Directory Traversal via the get_template() function. An attacker can access arbitrary files readable by the process by supplying a specially crafted URI with a double-slash prefix, which bypasses path normalization checks.

    Note:

    This is exploitable at the library API level. HTTP-based exploitation is mitigated by Python's BaseHTTPRequestHandler which normalizes double-slash prefixes since CPython gh-87389. Applications using other HTTP servers that do not normalize paths may be affected.

    How to fix Directory Traversal?

    Upgrade Mako to version 1.3.11 or higher.

    [,1.3.11)
    • M
    Regular Expression Denial of Service (ReDoS)

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the lexer function, when a tag has a large number of quotes within its quoted sections.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade Mako to version 1.2.2 or higher.

    [,1.2.2)