Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. liquidjs
  4. ›
  5. CVE-2026-33287

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

March 25, 2026

The replace_first filter in LiquidJS uses JavaScript’s String.prototype.replace() which interprets $& as a backreference 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.

References

  • github.com/advisories/GHSA-6q5m-63h6-5x4v
  • github.com/harttle/liquidjs
  • github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d
  • github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v
  • nvd.nist.gov/vuln/detail/CVE-2026-33287

Code Behaviors & Features

Detect and mitigate CVE-2026-33287 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 10.24.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/liquidjs/CVE-2026-33287.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 26 Mar 2026 00:18:18 +0000.