Skip to main content
← All vulnerabilities
CVE-2026-33287GHSA-6Q5M-63H6-5X4V

LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.25.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • harttle liquidjs

    fixed in 10.25.1

  • liquidjsnpm

    through 10.24.0

References 2

GitHub · harttle/liquidjs