Vulnerability

CVE-2026-34166

mediumCVSS 3.1 5.3Published 8 Apr 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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 products

From the NVD's configuration data (CPE), vendor first.

  • Liquidjs liquidjs

Weakness type

References

  • github.com /harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167…
  • github.com /harttle/liquidjs/releases/tag/v10.25.3
  • github.com /harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning