CVE-2026-34166
LiquidJS is a Shopify / GitHub Pages compatible template engine in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx
- github.com/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25
- github.com/harttle/liquidjs/releases/tag/v10.25.3
- github.com/advisories/GHSA-mmg9-6m6j-jqqx
- nvd.nist.gov/vuln/detail/CVE-2026-34166
- nvd.nist.gov/vuln/detail/CVE-2026-34166
- cve.org/CVERecord?id=CVE-2026-34166
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.