CVE-2026-33287 Details
Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to version 10.25.1, the `replace_first` filter in LiquidJS uses JavaScript's `String.prototype.replace()` which interprets `$&` as a back reference to the matched substring. The filter only charges `memoryLimit` for the input string length, not the amplified output. An attacker can achieve exponential memory amplification (up to 625,000:1) while staying within the `memoryLimit` budget, leading to denial of service. Version 10.25.1 patches the issue.
A denial-of-service vulnerability has been identified in LiquidJS versions prior to 10.25.1. The issue arises in the replace_first filter, which uses JavaScript's String.prototype.replace() method. This method interprets the replacement pattern '$&' as a backreference to the matched substring. The filter only accounts for the input string length in its memory usage, not the significantly larger output that can result from such expansions. This oversight allows an attacker to create a string that amplifies memory usage exponentially, by a factor of up to 625,000:1, while remaining within the application's memory limit. The vulnerability leads to excessive memory consumption, causing a denial-of-service condition by disrupting normal application performance.
Users should upgrade to LiquidJS version 10.25.1 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v | CISA-ADP | ExploitVendor Advisory |
| https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d | [email protected] | Patch |
| https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| liquidjs liquidjs | < 10.25.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 30, 2026 | Initial Analysis | [email protected] |
| Mar 26, 2026 | CVE Modified | CISA-ADP |
| Mar 26, 2026 | New CVE Received | [email protected] |