Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 82%

CVE-2026-55865: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in jg-rp liquid

0
High
VulnerabilityCVE-2026-55865cvecve-2026-55865cwe-835
Published: 07/09/2026 (07/09/2026, 20:34:38 UTC)
Source: CVE Database V5
Vendor/Project: jg-rp
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

liquid
pkg:pypi/liquid
Affected versions
<2.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/17/2026, 09:30:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses