CVE-2026-55865: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in jg-rp liquid
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.
AI Analysis
Technical Summary
CVE-2026-55865 is a high-severity vulnerability in the jg-rp liquid project (Python Liquid engine) where malformed template syntax involving the {% case %} tag leads to an infinite loop at parse time. Specifically, if a {% case %} tag lacks associated {% when %} or {% else %} blocks and is not properly terminated with {% endcase %}, the TokenStream.eof method fails to recognize the end of the token stream, causing the parser to hang indefinitely. This can be exploited by malicious template authors to cause denial of service. The vulnerability affects all versions prior to 2.2.1 and is resolved in 2.2.1.
Potential Impact
An attacker who can supply or influence template content can cause the Python Liquid engine to enter an infinite loop during parsing, resulting in a denial of service condition. This impacts availability by hanging the application or service using the vulnerable template engine. There is no indication of code execution or data disclosure from this vulnerability.
Mitigation Recommendations
Upgrade to Python Liquid version 2.2.1 or later, where this infinite loop issue is fixed. Patch status is confirmed by the versioning information indicating the fix in 2.2.1. No other mitigations are specified or required.
CVE-2026-55865: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in jg-rp liquid
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.
CVSS v4.0
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-55865 is a high-severity vulnerability in the jg-rp liquid project (Python Liquid engine) where malformed template syntax involving the {% case %} tag leads to an infinite loop at parse time. Specifically, if a {% case %} tag lacks associated {% when %} or {% else %} blocks and is not properly terminated with {% endcase %}, the TokenStream.eof method fails to recognize the end of the token stream, causing the parser to hang indefinitely. This can be exploited by malicious template authors to cause denial of service. The vulnerability affects all versions prior to 2.2.1 and is resolved in 2.2.1.
Potential Impact
An attacker who can supply or influence template content can cause the Python Liquid engine to enter an infinite loop during parsing, resulting in a denial of service condition. This impacts availability by hanging the application or service using the vulnerable template engine. There is no indication of code execution or data disclosure from this vulnerability.
Mitigation Recommendations
Upgrade to Python Liquid version 2.2.1 or later, where this infinite loop issue is fixed. Patch status is confirmed by the versioning information indicating the fix in 2.2.1. No other mitigations are specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-17T16:44:40.996Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50101f68715ace43153c8a
Added to database: 07/09/2026, 21:18:23 UTC
Last enriched: 07/17/2026, 09:30:55 UTC
Last updated: 08/23/2026, 22:52:12 UTC
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.