Skip to content
OpenAdvisories
High · 7.1 CVE-2026-55865 EUVD-2026-42693GHSA-vq2f-vcc9-j8mvPYSEC-2026-3035

Python Liquid: Infinite loop when parsing malformed `{% case %}` tags

Published Jul 9, 2026 · Updated Jul 14, 2026 · Assigned by GitHub_M

Description

Python Liquid is a Python engine for the Liquid template language. Prior to 2.2.1, given a malformed {% case %} tag without an associated {% when %} or {% else %} block and no terminating {% endcase %} tag, Python Liquid hangs in an infinite loop at parse time because liquid.TokenStream.eof did not give the EOF token matching kind and value fields, allowing malicious template authors to craft templates for a denial of service attack. This issue is fixed in version 2.2.1.

Affected products

VendorProductAffectedFixed
jg-rp liquid < 2.2.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI python-liquid < 2.2.1 2.2.1 GHSA-vq2f-vcc9-j8mv

References