Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34166: CWE-400: Uncontrolled Resource Consumption in harttle liquidjs

0
Low
VulnerabilityCVE-2026-34166cvecve-2026-34166cwe-400
Published: Wed Apr 08 2026 (04/08/2026, 17:52:05 UTC)
Source: CVE Database V5
Vendor/Project: harttle
Product: 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

AILast updated: 04/16/2026, 12:00:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses