Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. python-liquid
  4. ›
  5. CVE-2026-55865

CVE-2026-55865: Python Liquid: Infinite loop when parsing malformed `{% case %}` tags

June 19, 2026

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.

References

  • github.com/advisories/GHSA-vq2f-vcc9-j8mv
  • github.com/jg-rp/liquid/security/advisories/GHSA-vq2f-vcc9-j8mv
  • nvd.nist.gov/vuln/detail/CVE-2026-55865

Code Behaviors & Features

Detect and mitigate CVE-2026-55865 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.1

Fixed versions

  • 2.2.1

Solution

Upgrade to version 2.2.1 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

pypi/python-liquid/CVE-2026-55865.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 21 Jun 2026 00:18:59 +0000.