LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| harttle | liquidjs | before 10.25.3 | 10.25.3 | Patch available | CNA |
| — | liquidjs (npm) | before 10.25.3 | 10.25.3 | Patch available | GHSA-mmg9-6m6j-jqqx |
- liquidjs Vendorharttle Affected before 10.25.3 Fixed in 10.25.3 Patch available CNA
- liquidjs (npm) Vendor— Affected before 10.25.3 Fixed in 10.25.3 Patch available GHSA-mmg9-6m6j-jqqx
Remediation
- Fix · CNA liquidjs (harttle) Fixed in 10.25.3
- Fix · GHSA-mmg9-6m6j-jqqx liquidjs (npm) Fixed in 10.25.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34166
- 2026-10-03 Alias added: GHSA-mmg9-6m6j-jqqx
References
More harttle Liquidjs vulnerabilities
- TI-2026-29912 LiquidJS is vulnerable to Denial of Service via circular block reference in layout CVSS 3.1HIGH 7.5
- TI-2026-28394 Information disclosure in harttle liquidjs CVSS 3.1HIGH 7.5
- TI-2026-25698 LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern CVSS 3.1HIGH 7.5
- TI-2026-25696 LiquidJS: memoryLimit Bypass through Negative Range Values Leads to Process Crash CVSS 3.1HIGH 7.5
- TI-2026-27640 LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates CVSS 4.0HIGH 8.2
- TI-2022-09484 Information exposure in liquidjs CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-34166 · CVE Program
- CVE-2026-34166 · NVD
- FIRST EPSS
- GHSA-mmg9-6m6j-jqqx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences