CyberRota Analysis
AI-GeneratedLiquidJS, a template engine used in JavaScript applications, is vulnerable to a memory allocation flaw that allows crafted templates to exceed configured memory limits, potentially leading to process crashes. The vulnerability arises from improper complexity calculations in the join and array_to_sentence_string filters, which can be exploited to allocate excessive memory. Organizations utilizing LiquidJS versions prior to 10.27.2 should prioritize updating to mitigate the risk of service disruption.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.27.2, the join filter in src/filters/array.ts computes complexity from array.length and separator length instead of the total string length produced by array.join(sep). The concat filter can cheaply double arrays of references, after which join materializes the referenced content while charging only for element count, allowing a template to exceed a configured memoryLimit by a large factor. The sibling array_to_sentence_string filter in src/filters/string.ts has the same accounting defect, and a crafted template can allocate toward V8's string or process memory limit and crash the process. This issue is fixed in version 10.27.2.