Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-55865
Published:June 19, 2026
Updated:June 21, 2026
Impact Given a malformed "{% case %}" tag without associated "{% when %}" or "{% else %}" block, and no terminating "{% endcase %}" tag, Python Liquid hangs in an infinite loop at parse time. This allows malicious template authors to craft templates for a denial of service attack. Patches The issue is fixed in version 2.2.1 with the correction of the "liquid.TokenStream.eof" attribute. The "kind" and "value" of the special EOF token are now the same, so either can be tested against "liquid.token.TOKEN_EOF". Workarounds Manually correct the definition of "liquid.TokenStream.eof" before parsing any templates. import liquid from liquid.token import TOKEN_EOF liquid.stream.TokenStream.eof = liquid.Token(TOKEN_EOF, TOKEN_EOF, -1, "") ...
Affected Packages
python-liquid (CONDA):
Affected version(s) >=1.4.3 <2.2.1
Fix Suggestion:
Update to version 2.2.1
python-liquid (PYTHON):
Affected version(s) >=0.5.1 <2.2.1
Fix Suggestion:
Update to version 2.2.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Loop with Unreachable Exit Condition ('Infinite Loop')