Skip to main content
← All vulnerabilities
CVE-2026-61556GHSA-M7FP-H3P4-HR49

LiquidJS: An infinite loop vulnerability in `strip_html` filter

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.27.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. From 10.26.0 until 10.27.1, the strip_html filter in src/filters/html.ts can enter an infinite loop when an input string contains <, includes at least one preceding character, and has no later >. In strip_html, the search for the next opener advances lt while the loop index remains unchanged when the closer search returns -1, and the equality-only stall guard does not exit because the loop index is less than lt. Reprocessing the same state indefinitely blocks template rendering and can cause denial of service with an input as short as a<. This issue is fixed in version 10.27.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • harttle liquidjs

    From 10.26.0 · fixed in 10.27.1

  • liquidjsnpm

    From 10.26.0 · fixed in 10.27.1

References 4

GitHub · harttle/liquidjs