CVE-2026-33287 HIGH

CVE-2026-33287: LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern

Vendor Harttle
Product liquidjs
Weakness CWE-20 · Input validation
Published March 26, 2026
Last update March 26, 2026

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 26, 2026 CVE published
March 26, 2026 Record updated