CVE-2026-41311: CWE-674: Uncontrolled Recursion in harttle liquidjs
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.
AI Analysis
Technical Summary
LiquidJS, a JavaScript template engine compatible with Shopify and GitHub Pages, contained an uncontrolled recursion vulnerability (CWE-674) in versions before 10.25.7. Specifically, circular references in {% layout %} and {% block %} constructs cause infinite recursive loops, consuming approximately 4GB of memory and causing the Node.js process to crash with a fatal heap out of memory error. This vulnerability allows unauthenticated users who can submit Liquid templates to trigger a denial of service. The vulnerability is tracked as CVE-2026-41311 with a CVSS 3.1 base score of 7.5 (high severity). The issue is fixed in version 10.25.7.
Potential Impact
Exploitation results in a denial of service by crashing the Node.js process due to heap memory exhaustion. There is no impact on confidentiality or integrity. The attack requires the ability to submit crafted Liquid templates, which could be possible in environments where user input is rendered using vulnerable LiquidJS versions.
Mitigation Recommendations
A fix is available in LiquidJS version 10.25.7. Users and administrators should upgrade to version 10.25.7 or later to remediate this vulnerability. Since this is a self-hosted library, patching the dependency in affected applications is required. No other mitigations are indicated.
CVE-2026-41311: CWE-674: Uncontrolled Recursion in harttle liquidjs
Description
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LiquidJS, a JavaScript template engine compatible with Shopify and GitHub Pages, contained an uncontrolled recursion vulnerability (CWE-674) in versions before 10.25.7. Specifically, circular references in {% layout %} and {% block %} constructs cause infinite recursive loops, consuming approximately 4GB of memory and causing the Node.js process to crash with a fatal heap out of memory error. This vulnerability allows unauthenticated users who can submit Liquid templates to trigger a denial of service. The vulnerability is tracked as CVE-2026-41311 with a CVSS 3.1 base score of 7.5 (high severity). The issue is fixed in version 10.25.7.
Potential Impact
Exploitation results in a denial of service by crashing the Node.js process due to heap memory exhaustion. There is no impact on confidentiality or integrity. The attack requires the ability to submit crafted Liquid templates, which could be possible in environments where user input is rendered using vulnerable LiquidJS versions.
Mitigation Recommendations
A fix is available in LiquidJS version 10.25.7. Users and administrators should upgrade to version 10.25.7 or later to remediate this vulnerability. Since this is a self-hosted library, patching the dependency in affected applications is required. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T14:01:46.671Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ffe1afcbff5d8610eac9e9
Added to database: 05/10/2026, 01:38:55 UTC
Last enriched: 05/17/2026, 10:45:37 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 107
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.