LiquidJS CVE-2026-44645
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privileged template author account
-
DeliveryCraft empty for-body template with attacker-chosen range (1..N)
-
ExploitSubmit template via platform API or UI
-
InstallBackend calls parseAndRenderSync
-
C2renderLimit.check() never executes on empty templates array
-
ExecuteEvent-loop thread stalls for seconds
-
ImpactAll concurrent requests on that worker are blocked
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target application must use the LiquidJS npm package (<=10.25.7) with a finite |
| Impact | CVSS 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately encodes the risk profile: network-reachable, low complexity, requires only low-privileged access, no user interaction, availability-only impact. The PR:L requirement is a meaningful limiter in general, but in the primary deployment context - SaaS platforms where end users author Liquid templates for themes, emails, or snippets - a registered user account is exactly the low-privilege level required, making the realistic attacker pool large. The public PoC in GHSA-8xx9-69p8-7jp3 further lowers the exploitation barrier to near-zero skill. No EPSS score was provided in available data; exploitation probability cannot be quantified. CISA KEV status is not confirmed - active exploitation by threat actors is unknown. No patch is available (fixed in: None), which is the most significant risk amplifier: defenders cannot resolve this by upgrading. The Node.js event-loop architecture amplifies DoS impact beyond what CVSS alone conveys: a single 9.6-second stall on one worker is sufficient to cause a service outage for all requests queued behind it on that process. |
| Exploit ScenarioDerived | A registered user on a SaaS platform that renders user-authored Liquid templates (e.g., for email themes or storefront customization) submits the template |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
LiquidJS (npm package, versions through 10.25.7) has a complete bypass of its renderLimit time-budget defense when processing {% for %} or {% tablerow %} tags with empty bodies, enabling any low-privileged template author to stall a Node.js event-loop thread for an attacker-controlled duration. Because Node.js is single-threaded, a stall of 2-10+ seconds on one worker blocks all concurrent in-flight HTTP requests on that process, making this a practical denial-of-service vector in SaaS and multi-tenant platforms. A public proof-of-concept is included in the GitHub Security Advisory (GHSA-8xx9-69p8-7jp3) and was reproduced against liquidjs@10.25.7; no patch has been released as of this analysis.
RemediationAI
No vendor-released patch is available for this vulnerability at the time of analysis (fixed in: None). Integrators should apply compensating controls while awaiting an upstream fix. The most targeted control is input validation: reject or strip {% for %} and {% tablerow %} tags with empty bodies at template ingestion time before rendering - this directly breaks the exploit path with no side effects on well-formed templates. Second, set a conservative memoryLimit (e.g., 1e6 to 1e7) in the LiquidJS engine options alongside renderLimit; this caps the maximum N in range expressions and bounds worst-case stall time to sub-second durations, though it may reject legitimate templates that iterate large collections. Third, isolate rendering in Node.js worker_threads or child processes with a hard wall-clock timeout enforced by setTimeout + worker.terminate(), preventing a hung render from blocking the main event loop - this adds implementation complexity and latency overhead. The upstream recommended fix (described in the advisory at https://github.com/harttle/liquidjs/security/advisories/GHSA-8xx9-69p8-7jp3) is to move ctx.renderLimit.check(getPerformance().now()) to the top of renderTemplates in src/render/render.ts (before the templates loop) and add a per-iteration renderLimit.check() inside the for loop in both src/tags/for.ts and src/tags/tablerow.ts. Subscribers to the liquidjs npm package should monitor the repository for a patched release.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LiquidJS (CPE: pkg:npm/liquidjs) is a pure TypeScript implementation of the Liquid template engine for Node.js. The root cause is CWE-400 (Uncontrolled Resource Consumption): the time-budget check ctx.renderLimit.check(getPerformance().now()) in src/render/render.ts line 20 is placed inside the for (const tpl of templates) loop body. When templates is an empty array - which occurs when a {% for %} tag has no body nodes - the loop body never executes, so the limiter is never invoked. The for tag in src/tags/for.ts line 73 calls r.renderTemplates(this.templates, ctx, emitter) once per collection item with no independent per-iteration time check. Range expressions (1..N) in src/render/expression.ts are bounded only by memoryLimit, not renderLimit. The result is that N iterations of JavaScript generator boilerplate execute without any time guard, consuming CPU proportional to N. The {% tablerow %} tag contains an analogous flaw. The separation of memoryLimit (controls max N) and renderLimit (intended to control wall-clock time) means the only practical cap on stall duration is available process memory.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/harttle/liquidjs) · only source for this CVE.
CVSS VectorVendor: https://github.com/harttle/liquidjs
DescriptionCVE.org
Summary
The renderLimit option - documented in docs/source/tutorials/dos.md as the mechanism that "mitigates this by limiting the time consumed by each render() call" - can be fully bypassed by a {% for %} (or {% tablerow %}) tag whose body is empty. The per-iteration time check is reached only when the body contains at least one template node, so a template like {%- for i in (1..N) -%}{%- endfor -%} iterates the full collection without ever consulting renderLimit. With a configured renderLimit of 50 ms, a single parseAndRenderSync call has been observed to consume 2.26 seconds (~45× over the limit) and scales linearly with N up to memoryLimit, allowing a low-privileged template author to wedge an event-loop thread for an attacker-chosen duration.
Details
Render.renderTemplates is the single point at which renderLimit is consulted:
// src/render/render.ts
14: public * renderTemplates (templates: Template[], ctx: Context, emitter?: Emitter): IterableIterator<any> {
15: if (!emitter) {
16: emitter = ctx.opts.keepOutputType ? new KeepingTypeEmitter() : new SimpleEmitter()
17: }
18: const errors = []
19: for (const tpl of templates) {
20: ctx.renderLimit.check(getPerformance().now())
21: try {
22: const html = yield tpl.render(ctx, emitter)
...
32: }The check at line 20 lives inside the for (const tpl of templates) body. When templates.length === 0, the loop body never executes, so the limiter is never consulted on that invocation.
The for tag re-enters renderTemplates once per collection item with no independent time check:
// src/tags/for.ts
70: for (const item of collection) {
71: scope[this.variable] = item
72: ctx.continueCalled = ctx.breakCalled = false
73: yield r.renderTemplates(this.templates, ctx, emitter)
74: if (ctx.breakCalled) break
75: scope.forloop.next()
76: }When {%- for i in (1..N) -%}{%- endfor -%} is parsed, this.templates is []. Each of the N calls to r.renderTemplates(this.templates, ctx, emitter) therefore performs zero renderLimit.check() calls and zero template work - it just spins the JS-level for loop and the generator boilerplate. With N = 30_000_000 this still costs ~2.26 s of CPU, and N = 100_000_000 costs ~9.6 s, fully bypassing whatever wall-clock budget the integrator configured.
The range expression itself is bounded only by memoryLimit:
// src/render/expression.ts:67-72
function * evalRangeToken (token: RangeToken, ctx: Context) {
const low: number = yield evalToken(token.lhs, ctx)
const high: number = yield evalToken(token.rhs, ctx)
ctx.memoryLimit.use(high - low + 1)
return range(+low, +high + 1)
}So the maximum bypass is governed by the (separate) memoryLimit, not by renderLimit. Integrators following the docs/source/tutorials/dos.md guidance - which positions renderLimit as the time-based defense - get no time-based defense at all on this code path.
PoC
Reproduced against liquidjs@10.25.7 (HEAD 34877950):
# Empty for-body bypasses renderLimit (50 ms) and runs for ~2.26 s:
$ node -e "const { Liquid } = require('liquidjs');
const engine = new Liquid({ memoryLimit: 1e9, renderLimit: 50 });
const t = Date.now();
engine.parseAndRenderSync('{%- for i in (1..30000000) -%}{%- endfor -%}', {});
console.log('Took', Date.now()-t, 'ms');"
Took 2255 ms
# Same template with a single-character body is correctly bounded:
$ node -e "const { Liquid } = require('liquidjs');
const engine = new Liquid({ memoryLimit: 1e9, renderLimit: 50 });
try { engine.parseAndRenderSync('{%- for i in (1..30000000) -%}.{%- endfor -%}', {}); }
catch(e) { console.log('correctly threw:', e.message); }"
correctly threw: template render limit exceeded, line:1, col:1Scaling N:
N = 30_000_000→ 2255 ms (≈ 45× over the 50 ms limit)N = 100_000_000→ 9581 ms (≈ 191× over the 50 ms limit)
Time grows linearly with N, capped only by memoryLimit (default Infinity, so the only cap by default is process memory).
Impact
Any liquidjs integrator who follows the upstream DoS guidance and sets a finite renderLimit to bound per-render CPU - typical for SaaS / multi-tenant environments where end users author templates (themes, email templates, snippets) - does not get the bound they configured. A single template submission can keep an event-loop thread busy for seconds, which on a Node.js server is sufficient to stall all in-flight requests on that worker. With a large enough range and a permissive memoryLimit, the wedge time is attacker-controlled. No data is exposed and no integrity is harmed; impact is availability only.
Recommended Fix
Move the renderLimit check to a location that runs unconditionally per renderTemplates invocation, so a zero-template body still triggers it; alternatively (or additionally) have iteration tags that invoke renderTemplates per element check the limiter themselves once per iteration.
// src/render/render.ts - check at function entry, before the templates loop
public * renderTemplates (templates: Template[], ctx: Context, emitter?: Emitter): IterableIterator<any> {
if (!emitter) {
emitter = ctx.opts.keepOutputType ? new KeepingTypeEmitter() : new SimpleEmitter()
}
ctx.renderLimit.check(getPerformance().now()) // <-- runs even when templates is empty
const errors = []
for (const tpl of templates) {
ctx.renderLimit.check(getPerformance().now())
...
}
...
}And/or, defensively, in the iteration tags themselves so the guard cost is paid once per element rather than only at re-entry:
// src/tags/for.ts (around line 70)
for (const item of collection) {
ctx.renderLimit.check(getPerformance().now()) // <-- per-iteration time check
scope[this.variable] = item
ctx.continueCalled = ctx.breakCalled = false
yield r.renderTemplates(this.templates, ctx, emitter)
if (ctx.breakCalled) break
scope.forloop.next()
}
// src/tags/tablerow.ts (around line 54) - analogous addition
for (let idx = 0; idx < collection.length; idx++, tablerowloop.next()) {
ctx.renderLimit.check(getPerformance().now())
...
}The same hardening should be applied anywhere a tag drives an attacker-influenced loop count over a (potentially empty) templates array.
Blast Radius
ecosystem impact- 14 npm packages depend on liquidjs (7 direct, 7 indirect)
Ecosystem-wide dependent count for version 10.26.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
GHSA-8xx9-69p8-7jp3
NVD
CVE.org
EPSS
VulDB
Exploit-DB