CVE-2026-34166: CWE-400: Uncontrolled Resource Consumption in harttle liquidjs
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, the replace filter in LiquidJS incorrectly accounts for memory usage when the memoryLimit option is enabled. It charges str.length + pattern.length + replacement.length bytes to the memory limiter, but the actual output from str.split(pattern).join(replacement) can be quadratically larger when the pattern occurs many times in the input string. This allows an attacker who controls template content to bypass the memoryLimit DoS protection with approximately 2,500x amplification, potentially causing out-of-memory conditions. This vulnerability is fixed in 10.25.3.
AI Analysis
Technical Summary
LiquidJS versions prior to 10.25.3 have an uncontrolled resource consumption vulnerability (CWE-400) in the replace filter. When the memoryLimit option is enabled, the memory usage is underestimated because it only accounts for the lengths of the input string, pattern, and replacement string. However, the actual output size from str.split(pattern).join(replacement) can be quadratically larger if the pattern occurs frequently, enabling an attacker to bypass memory limits with approximately 2,500 times amplification. This can lead to out-of-memory conditions and denial-of-service. The issue is resolved in LiquidJS 10.25.3.
Potential Impact
An attacker who can control template content may exploit this vulnerability to cause excessive memory consumption, potentially leading to denial-of-service due to out-of-memory conditions. The CVSS score is 3.7 (low severity), reflecting limited impact as it requires control over template content and has a high attack complexity.
Mitigation Recommendations
Upgrade LiquidJS to version 10.25.3 or later, where this vulnerability is fixed. No other mitigation is indicated or required according to the available data.
CVE-2026-34166: CWE-400: Uncontrolled Resource Consumption in harttle liquidjs
Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, the replace filter in LiquidJS incorrectly accounts for memory usage when the memoryLimit option is enabled. It charges str.length + pattern.length + replacement.length bytes to the memory limiter, but the actual output from str.split(pattern).join(replacement) can be quadratically larger when the pattern occurs many times in the input string. This allows an attacker who controls template content to bypass the memoryLimit DoS protection with approximately 2,500x amplification, potentially causing out-of-memory conditions. This vulnerability is fixed in 10.25.3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LiquidJS versions prior to 10.25.3 have an uncontrolled resource consumption vulnerability (CWE-400) in the replace filter. When the memoryLimit option is enabled, the memory usage is underestimated because it only accounts for the lengths of the input string, pattern, and replacement string. However, the actual output size from str.split(pattern).join(replacement) can be quadratically larger if the pattern occurs frequently, enabling an attacker to bypass memory limits with approximately 2,500 times amplification. This can lead to out-of-memory conditions and denial-of-service. The issue is resolved in LiquidJS 10.25.3.
Potential Impact
An attacker who can control template content may exploit this vulnerability to cause excessive memory consumption, potentially leading to denial-of-service due to out-of-memory conditions. The CVSS score is 3.7 (low severity), reflecting limited impact as it requires control over template content and has a high attack complexity.
Mitigation Recommendations
Upgrade LiquidJS to version 10.25.3 or later, where this vulnerability is fixed. No other mitigation is indicated or required according to the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-25T20:12:04.197Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d736fd1cc7ad14da418acd
Added to database: 4/9/2026, 5:19:57 AM
Last enriched: 4/16/2026, 12:00:30 PM
Last updated: 5/25/2026, 12:20:59 PM
Views: 59
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.