CVE-2026-34166 LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter

Low 3.7 Published Updated

Attackers can bypass memory limits in LiquidJS via quadratic amplification in the replace filter, causing out-of-memory conditions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34166?

CVE-2026-34166 is a low-severity denial of service vulnerability in harttle liquidjs, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-400

Which versions are affected by CVE-2026-34166?

2 open source packages ship an affected version, including liquidjs. It affects 1 product.

PackageAffectedFixed in
liquidjs npmAll versions10.25.3
liquidjs npmAll versions10.25.3

Products include Liquidjs Liquidjs.

How do I fix CVE-2026-34166?

Upgrade liquidjs to 10.25.3 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-34166 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34166 exists.

Sources

Also known as GHSA-mmg9-6m6j-jqqx, MINI-mr79-63h7-2r8j, MINI-vr73-v232-qff5.

Is CVE-2026-34166 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free