mako 1.4.3
- Source
- https://github.com/sqlalchemy/mako
- Artifact scanned
mako-1.4.3-py3-none-any.whl- Compared with
mako-1.4.2-py3-none-any.whl(0 signals introduced since)- Files
- 35 scanned, 4 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 13 info
- Scan time
- 9.6 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 13 of 13 warn and critical signals; 13 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-23 06:58
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
"""Parse an expression into an AST node.""" returnlikely benign Expression parser wrapper that calls compile with PyCF_ONLY_AST to build an AST node.Reasoning
This is a helper that parses an expression string into an AST via compile with PyCF_ONLY_AST. The flag means it only builds a syntax tree and never executes code. Mako uses it to parse template expressions, so the non-literal argument is expected.
-
= > 0 = = = Nonelikely benign Evaluates a template tag attribute string (buffered flag) during code generation.Reasoning
Mako's code generator calls eval on attribute strings from template tags such as buffered and cached. These are developer-written template directives compiled at template build time, not attacker-controlled runtime input. Eval is a poor design choice, but it is a legitimate template-engine pattern.
-
= = = None = Nonelikely benign Evaluates the cached attribute of a template tag during code generation.Reasoning
Same pattern as the neighbouring findings: eval of the cached attribute from a template tag during code generation. It comes from template source authored by the developer, so it is not an obfuscated payload.
-
+= = = orlikely benign Evaluates a page tag's cached attribute during code generation.Reasoning
Evaluates the cached attribute of a page tag while generating code. This is the template compiler reading developer-written directive values, consistent with Mako's design.
-
= = orlikely benign Evaluates a page tag's enable_loop attribute during code generation.Reasoning
Evaluates the enable_loop attribute of a page tag during code generation. The value comes from template source, so this is the compiler handling its own directives rather than an attacker-controlled execution path.
-
)likely benign Evaluates a def tag's inheritable attribute during code generation.Reasoning
Evaluates the inheritable attribute of a def tag during code generation. This is developer-authored template configuration processed by the compiler, which matches Mako's normal behaviour.
-
= > 0 = =likely benign Evaluates the buffered attribute of a template tag during code generation.Reasoning
Evaluates the buffered attribute of a template tag during code generation. The input is developer template source, consistent with Mako's compiler design.
-
= =likely benign Evaluates the cached attribute of a template tag during code generation.Reasoning
Evaluates the cached attribute of a template tag during code generation. This is the same benign template-directive handling as the other eval findings in this file.
-
=likely benign Evaluates a cache timeout argument from a template tag and converts it to int.Reasoning
Evaluates a cache timeout argument from the template, then casts it to int. The input is template source, so this is an unsafe-looking but ordinary template-compiler construct, not a hidden payload.
-
= =likely benign Resolves a dotted module name to an object for template runtime lookup via __import__.Reasoning
This loads a module by dotted name with __import__ and then walks attributes to reach the target. That is the standard way to resolve a template's module path, and the input comes from the developer's configuration, not from untrusted input. The critical severity reflects the signal, not the code's behaviour.
-
): = # the module body, which is the code of any <%! %> blocks, islikely benign Compiles generated template source into a code object.Reasoning
Compiles Mako-generated Python source for a template into a code object. This is the core purpose of the template engine, and the source is produced from template files the developer supplies.
-
# the module as one step returnlikely benign Executes compiled template code to populate the template module namespace.Reasoning
Executes the compiled template module code into the module's dict. This is the intended mechanism for loading a template, and it is the expected behaviour of a template engine. It is not a malicious dropper.
-
= =likely benign Lazy loader that imports a module by path and resolves an attribute chain.Reasoning
Imports a module by path string and walks its attributes to return the target object. This is a standard lazy-loading helper for resolving named objects in Mako, and the modulepath is supplied by the developer's code.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|