{"id":"CVE-2026-44644","published":"2026-06-17T21:50:24Z","modified":"2026-06-18T13:09:26Z","title":"LiquidJS's strip_html filter bypass via newline characters in HTML tags enables XSS","vendor":"harttle","product":"liquidjs","tier":"tail","description":{"text":"LiquidJS is a Shopify/GitHub Pages compatible template engine written in pure JavaScript. Versions 10.25.7 and below are vulnerable to XSS through a flaw in the strip_html filter logic. The strip_html filter is intended to remove HTML tags from a string before rendering, and is widely used as an XSS sanitizer. The implementation uses a regex whose catch-all branch (<.*?>) does not match line terminators, so any HTML tag containing a \\n or \\r character passes through unmodified. An attacker who can place a newline inside a tag (e.g. <img\\nsrc=x\\nonerror=alert(1)>) bypasses sanitization entirely, since browsers treat newlines as whitespace within a tag and execute the resulting onerror/onload/etc. handler. Exploitation is possible for applications that both render attacker-controlled strings via {{ x | strip_html }} to defend against HTML injection and do not separately HTML-escape that output (default behavior — outputEscape is unset by default). This issue has been fixed in version 10.26.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0025,"percentile":0.16615,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/harttle/liquidjs/security/advisories/GHSA-2qv6-9wx5-cwv4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/harttle/liquidjs/commit/26ea2856c7a90aec892b98d94a9b7a3e18539045","tags":["x_refsource_MISC"]},{"url":"https://github.com/harttle/liquidjs/releases/tag/v10.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.32},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"harttle","affectedVersions":[{"vendor":"harttle","product":"liquidjs","versions":["< 10.26.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-18T13:09:01.490176Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"liquidjs","vulnerableRanges":["<10.26.0"],"patched":["10.26.0"],"from":["GHSA-2qv6-9wx5-cwv4"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-37815","exploited":false,"provenance":"source"}}