CVE-2026-34166

LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter

MEDIUM
5.3
CVSS Score
Published: April 8, 2026 at 05:52 PM UTC
Updated: July 24, 2026 at 10:20 PM UTC
2 products affected across 2 vendorsLiquidjsLiquidjs

Using liquidjs by harttle?

Get instant alerts when new vulnerabilities affect liquidjs - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.5%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 10.25.3
Affected range stops below 10.25.3, so it looks safe — our inference, not a vendor statement
v < 10.25.3
Affected range stops below 10.25.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card