Skip to main content

LiquidJS CVE-2026-44645

MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-05-27 https://github.com/harttle/liquidjs GHSA-8xx9-69p8-7jp3
6.5
CVSS 3.1 · Vendor: https://github.com/harttle/liquidjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privileged template author account
  2. Delivery
    Craft empty for-body template with attacker-chosen range (1..N)
  3. Exploit
    Submit template via platform API or UI
  4. Install
    Backend calls parseAndRenderSync
  5. C2
    renderLimit.check() never executes on empty templates array
  6. Execute
    Event-loop thread stalls for seconds
  7. Impact
    All 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 renderLimit option configured per the upstream DoS guidance, AND must allow low-privileged users to submit arbitrary Liquid template content for server-side rendering. The exploit template requires only an empty {% for %} or {% tablerow %} tag with a range expression: {%- for i in (1..N) -%}{%- endfor -%}. The maximum stall duration scales linearly with N, capped only by memoryLimit (default: Infinity - no practical cap without explicit configuration). Exploitation is limited by: CVSS PR:L requires the attacker to hold a valid low-privileged account with template-submission capability; impact is strictly availability (no data exposure, no integrity impact); multi-worker deployments spread but do not eliminate the impact since each worker can be stalled independently; applications that do not expose template authoring to end users are not affected.

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 {%- for i in (1..100000000) -%}{%- endfor -%} via the template editor. The backend Node.js worker calls engine.parseAndRenderSync() on the submission; because the for-body is empty, the renderLimit check never fires, and the worker thread stalls for approximately 9.6 seconds. All HTTP requests queued behind this render on that event-loop thread time out or are dropped. A public PoC demonstrating this exact scenario is included in GitHub Security Advisory GHSA-8xx9-69p8-7jp3 and was confirmed against liquidjs@10.25.7.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm liquidjs fix: 10.26.0

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

Vendor (https://github.com/harttle/liquidjs) PRIMARY 6.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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:

ts
// 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:

ts
// 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:

ts
// 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):

bash
# 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:1

Scaling 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.

ts
// 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:

ts
// 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 14 npm packages depend on liquidjs (7 direct, 7 indirect)

Ecosystem-wide dependent count for version 10.26.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:npm/liquidjs
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy