LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| harttle | liquidjs | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Harttle | Liquidjs |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-mmg9-6m6j-jqqx | LiquidJS Has Memory Limit Bypass via Quadratic Amplification in `replace` Filter |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.514% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Liquidjs
Liquidjs liquidjs |
|
| CPEs | cpe:2.3:a:liquidjs:liquidjs:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Liquidjs
Liquidjs liquidjs |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Harttle
Harttle liquidjs |
|
| Vendors & Products |
Harttle
Harttle liquidjs |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter | |
| Weaknesses | CWE-400 | |
| References |
| |
| Metrics |
cvssV3_1
|