{"id":"CVE-2026-41311","published":"2026-05-09T04:03:25Z","modified":"2026-05-11T15:04:09Z","title":"LiquidJS is vulnerable to Denial of Service via circular block reference in layout","vendor":"harttle","product":"liquidjs","tier":"tail","description":{"text":"LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to version 10.25.7, a circular block reference in {% layout %} / {% block %} causes an infinite recursive loop, consuming all available memory (~4GB) and crashing the Node.js process with FATAL ERROR: JavaScript heap out of memory. This allows any user who can submit a Liquid template to perform a Denial of Service attack. This issue has been patched in version 10.25.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00382,"percentile":0.33156,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/harttle/liquidjs/security/advisories/GHSA-4rc3-7j7w-m548","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0","tags":["x_refsource_MISC"]},{"url":"https://github.com/harttle/liquidjs/releases/tag/v10.25.7","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.63},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"harttle","affectedVersions":[{"vendor":"harttle","product":"liquidjs","versions":["< 10.25.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-11T15:04:05.394344Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"liquidjs","vulnerableRanges":["<10.25.7"],"patched":["10.25.7"],"from":["GHSA-4rc3-7j7w-m548"],"provenance":"source"}],"summary":{"text":"LiquidJS, a pure JavaScript template engine, is vulnerable to a circular block reference within its {% layout %} and {% block %} tags, which triggers unbounded recursion. An attacker who can submit a Liquid template to an affected instance over the network, with no authentication or user interaction required, can exhaust the process's memory and crash the Node.js process; the flaw is present in versions before 10.25.7.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:39Z"},"euvd":{"id":"EUVD-2026-28886","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-harttle-liquidjs-cve-2022-25948","parents":[{"from":"CVE-2022-25948","to":"CVE-2026-41311","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/context/context.ts"],"commits":["https://github.com/harttle/liquidjs/commit/7e99efc5131e20cf3f59e1fc2c371a15aa4109db","https://github.com/harttle/liquidjs/commit/7eb621601c2b05d6e379e5ce42219f2b1f556208","https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0"],"basis":"shared function","functions":["Context"]}]}],"children":[{"from":"CVE-2026-41311","to":"CVE-2026-106120","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/context/context.ts"],"commits":["https://github.com/harttle/liquidjs/commit/552819a84b80c62306fe61072628a756272dc749","https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0"],"basis":"shared function","functions":["Context"]}]}],"packageHistory":[{"cve":"CVE-2026-35525","published":"2026-04-08","fixed":"10.25.3","kev":false},{"cve":"CVE-2026-39412","published":"2026-04-08","fixed":"10.25.4","kev":false},{"cve":"CVE-2026-39859","published":"2026-04-08","fixed":"10.25.5","kev":false,"link":{"from":"CVE-2026-39859","to":"CVE-2026-41311","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.5","toFixed":"10.25.7","daysApart":31}]}},{"cve":"CVE-2026-41311","published":"2026-05-09","fixed":"10.25.7","kev":false},{"cve":"CVE-2026-44644","published":"2026-06-17","fixed":"10.26.0","kev":false},{"cve":"CVE-2026-44645","published":"2026-06-17","fixed":"10.26.0","kev":false},{"cve":"CVE-2026-44646","published":"2026-06-17","fixed":"10.26.0","kev":false}],"package":"npm:liquidjs"}}