Skip to content

5.0.0 - Opt-in templates rendering

Latest

Choose a tag to compare

@jmaupetit jmaupetit released this 20 Nov 11:34
75c9d21

Security

  • Render input markdown as a Jinja template in a sandboxed environment, only when template rendering is explicitly enabled (CWE-1336). Any markdown input used to be rendered as a non-sandboxed Jinja template, allowing server-side template injection leading to arbitrary code execution when converting untrusted documents.

Changed

  • BREAKING: Jinja template rendering is now opt-in (disabled by default): use the render_template=True argument with the Python API or the --template flag with the CLI to enable it