Infinite loop Affecting python-liquid package, versions [,2.2.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYTHONLIQUID-17458912
  • published25 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

CVE-2026-55865  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade python-liquid to version 2.2.1 or higher.

Overview

python-liquid is an A Python engine for the Liquid template language.

Affected versions of this package are vulnerable to Infinite loop in the {% case %} tag parsing logic, caused by an incorrect definition of the EOF token's kind and value in the TokenStream.eof attribute. A user who can author or supply templates can hang the parser and cause a denial of service by providing a {% case %} tag that has no {% when %} or {% else %} branch and no terminating {% endcase %}. Exploitation requires the application to parse template source supplied by untrusted authors, and the hang occurs at parse time.

CVSS Base Scores

version 4.0
version 3.1