LiquidJS: An infinite loop vulnerability in `strip_html` filter
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-61556
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:54 UTC · Revision 1
Source evidence
LiquidJS: An infinite loop vulnerability in `strip_html` filter
core-osv · Original sourcePublished 19 Aug 2026, 20:49 UTC
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.
osv:CVE-2026-61556
Complete source record
{
"id": "f4a982bed7e7fe96d0547e5ba158718c8a027e93ab1bfa33e98f8c2a5dfefdf7",
"url": "https://osv.dev/vulnerability/CVE-2026-61556",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "LiquidJS: An infinite loop vulnerability in `strip_html` filter",
"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.",
"evidence": "osv:CVE-2026-61556",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-61556",
"aliases": [
"CVE-2026-61556",
"GHSA-m7fp-h3p4-hr49"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/harttle/liquidjs",
"type": "GIT",
"events": [
{
"introduced": "c20c0af02d33e8d2ca6b08925eadca8755257c39"
},
{
"fixed": "ed489865b64ce8f7cae2f14875e1a05742e043b3"
},
{
"fixed": "5c3522f33928aae66f0fe85c36e1d9015c768fe2"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "10.26.0"
},
{
"fixed": "10.27.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "5c3522f33928aae66f0fe85c36e1d9015c768fe2"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ed489865b64ce8f7cae2f14875e1a05742e043b3"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v10.27.1"
}
]
}
}
],
"versions": [
"v10.27.0",
"v10.26.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61556.json"
}
}
],
"modified": "2026-10-28T02:30:27.668980236Z",
"provider": "osv",
"references": [
"https://github.com/harttle/liquidjs/releases/tag/v10.27.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61556.json",
"https://github.com/harttle/liquidjs/security/advisories/GHSA-m7fp-h3p4-hr49",
"https://nvd.nist.gov/vuln/detail/CVE-2026-61556",
"https://github.com/harttle/liquidjs/commit/5c3522f33928aae66f0fe85c36e1d9015c768fe2",
"https://github.com/harttle/liquidjs/pull/917"
],
"provider_metadata": {
"cwe_ids": [
"CWE-835"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61556.json"
}
},
"related_cves": [
{
"value": "CVE-2026-61556",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494335,
"published_at": "2026-08-19T20:49:56.02+00:00"
}