LiquidJS
LiquidJS: `pop` filter bypasses `memoryLimit` accounting that its array-filter siblings enforce
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.27.1, the pop array filter at src/filters/array.ts allocated a full clone of its input array via [...toArray(v)] without calling this.context.memoryLimit.use(...), allowing a template render such as {{ huge_array | pop }} to allocate an O(N) clone of an attacker-influenced array outside the configured memoryLimit budget. This issue is fixed in version 10.27.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-770
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
harttle liquidjs
- < 10.27.1
Fixed in 10.27.1
Mitigation
Upgrade liquidjs to 10.27.1 or later.
References
- Vendor advisory github.com/harttle/liquidjs/security/advisorie…
- Patch github.com/harttle/liquidjs/pull/907
- Patch github.com/harttle/liquidjs/commit/8a0c74a7fcb…
1 more
- Release notes github.com/harttle/liquidjs/releases/tag/v10.2…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.