Python Liquid: Infinite loop when parsing malformed `{% case %}` tags
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-835.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jg-rp | liquid | before 2.2.1 | 2.2.1 | Patch available | CNA |
| — | python-liquid (PyPI) | before 2.2.1 | 2.2.1 | Patch available | GHSA-vq2f-vcc9-j8mv |
- liquid Vendorjg-rp Affected before 2.2.1 Fixed in 2.2.1 Patch available CNA
- python-liquid (PyPI) Vendor— Affected before 2.2.1 Fixed in 2.2.1 Patch available GHSA-vq2f-vcc9-j8mv
Remediation
- Fix · CNA liquid (jg-rp) Fixed in 2.2.1
- Fix · GHSA-vq2f-vcc9-j8mv python-liquid (PyPI) Fixed in 2.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55865
- 2026-10-03 Alias added: GHSA-vq2f-vcc9-j8mv
References
More jg-rp vulnerabilities
- TI-2026-32873 Python Liquid: Absolute paths escape filesystem loader search path CVSS 4.0HIGH 8.2
Sources
- CVE-2026-55865 · CVE Program
- CVE-2026-55865 · NVD
- FIRST EPSS
- GHSA-vq2f-vcc9-j8mv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences