Skip to main content
← All vulnerabilities
CVE-2026-55865PYSEC-2026-3035GHSA-VQ2F-VCC9-J8MV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • jg-rp liquid

    fixed in 2.2.1

  • python-liquidPyPI

    fixed in 2.2.1

References 3

GitHub · jg-rp/liquid