Skip to main content

LiquidJS CVE-2026-44646

MEDIUM
Protection Mechanism Failure (CWE-693)
2026-05-27 https://github.com/harttle/liquidjs GHSA-9x9p-qf8f-mvjg
5.3
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. Access
    Identify application using {% render %} partials with user-controlled template input
  2. Delivery
    Craft partial template containing prototype-chain property access expression
  3. Exploit
    Submit template via CMS/API to parseAndRender() with ownPropertyOnly:true override
  4. Execution
    Context.spawn() discards per-render override when building partial scope
  5. Persist
    Partial resolves prototype-chain property via readJSProperty with ownPropertyOnly:false
  6. Impact
    Sensitive prototype-chain data returned in rendered output

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
Exploitation Conditions

Exploitation requires all four of the following conditions to be simultaneously true: (1) the LiquidJS instance is initialized with ownPropertyOnly:false (or the option is left at its default falsy value), which is the common backward-compatibility configuration; (2) the application relies on parseAndRender(..., { ownPropertyOnly: true }) as the per-render lockdown mechanism for untrusted template input rather than enforcing ownPropertyOnly:true at the instance level; (3) the Liquid template being rendered contains one or more {% render 'partial' %} tag invocations that include at least one of the render variables as a passed argument; (4) the objects passed to the {% render %} partial have meaningful properties on their prototype chain (e.g., class instances, ORM models, framework-injected objects). Exploitation is blocked if: ownPropertyOnly:true is set at the instance level (overrides the per-render path entirely); no {% render %} tags are used in templates (only {% include %} tags are unaffected); or all objects passed to partials are plain JSON-deserialized objects with no prototype-chain properties beyond Object.prototype. The CVSS vector AV:N/AC:L/PR:N/UI:N reflects that once the above conditions exist, no authentication and no user interaction are required beyond the ability to influence template content.

Impact

The CVSS 3.1 base score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) reflects network-reachable, zero-complexity exploitation with no authentication requirement, limited to confidentiality impact. The score accurately captures the accessibility of the flaw but understates real-world severity for affected deployments: applications that use ownPropertyOnly:false for backward compatibility and rely on the per-render override as their sole untrusted-template boundary are fully exposed with no compensating control. A functional PoC is published in the GitHub Security Advisory (GHSA-9x9p-qf8f-mvjg), confirming exploitability is not theoretical. The vulnerability is not listed in the CISA KEV catalog, and no EPSS data was provided in the input, so exploitation probability cannot be quantified. Real-world priority should be elevated above the base CVSS score for any Node.js application that (a) uses liquidjs with ownPropertyOnly:false at the instance level and (b) renders untrusted or user-controlled templates containing {% render %} partials. Applications that already set ownPropertyOnly:true at the instance level, or that never pass objects with meaningful prototype-chain properties, face negligible practical risk.

Exploit ScenarioDerived

An attacker submits a malicious Liquid template to a CMS or email-template system built on a LiquidJS instance configured with ownPropertyOnly:false for backward compatibility. The developer calls parseAndRender(attackerTemplate, { user: currentUser }, { ownPropertyOnly: true }) believing the per-render lockdown prevents prototype-chain access. The attacker's template uses {% render '_leak.liquid', user: user %} where the partial contains {{ user.passwordHash }} or {{ user.constructor.prototype.secret }}; because Context.spawn() discards the ownPropertyOnly:true override, the partial reads and returns the prototype-chain property. A functional PoC demonstrating this exact scenario is published in the GitHub Advisory.

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

Prototype-chain property leakage in LiquidJS (npm/liquidjs <= 10.25.7) allows unauthenticated remote attackers to read prototype-chain properties of JavaScript objects passed to a {% render %} partial, even when the caller explicitly invoked parseAndRender() with { ownPropertyOnly: true } to lock down the render. The root cause is Context.spawn() failing to propagate the resolved per-render ownPropertyOnly value to child contexts, silently discarding a documented security override. A publicly available proof-of-concept exploit exists demonstrating that top-level {{ user.passwordHash }} is correctly blocked while the identical expression inside a {% render %} partial returns the sensitive value; no vendor-released patch is available at time of analysis.

RemediationAI

No vendor-released patch is available at time of analysis. The upstream advisory at https://github.com/harttle/liquidjs/security/advisories/GHSA-9x9p-qf8f-mvjg identifies the exact one-line fix: in src/context/context.ts, Context.spawn() must pass ownPropertyOnly: this.ownPropertyOnly in the RenderOptions argument so the resolved per-render value flows into child contexts. Until an official patched release ships, the most effective compensating control is to set ownPropertyOnly: true at the LiquidJS instance level (new Liquid({ ownPropertyOnly: true })) rather than relying on per-render overrides - this ensures the restriction is applied uniformly and cannot be bypassed through spawn(). The trade-off is that instance-level ownPropertyOnly:true is more restrictive and may break templates or data layers that currently rely on prototype-chain property access; test thoroughly before applying. A second mitigation is to audit all templates for {% render %} partial usage and ensure no objects with sensitive prototype-chain properties (framework-injected helpers, ORM model instances, class instances with secret fields) are passed as render variables until the patch is available. Disabling the {% render %} tag entirely is a third option if partials are not required, eliminating the vulnerable code path at the cost of that templating feature.

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 is a JavaScript/TypeScript implementation of the Liquid template engine (pkg:npm/liquidjs). The library exposes a per-render security option, ownPropertyOnly, that restricts JavaScript property lookups to own properties only, preventing access to prototype-chain properties (a standard defense against prototype pollution-style data leakage in template engines). When parseAndRender() is called with { ownPropertyOnly: true }, the resolved value is stored on the parent Context instance. However, Context.spawn() at src/context/context.ts:105-114 constructs a new child Context and passes only a partial RenderOptions object that omits ownPropertyOnly. Because the child Context constructor resolves this.ownPropertyOnly = renderOptions.ownPropertyOnly ?? opts.ownPropertyOnly (line 47), the child falls back to the instance-level opts.ownPropertyOnly (e.g. false), discarding the per-render override. The {% render %} tag at src/tags/render.ts:51-77 calls ctx.spawn() to build the partial's isolated scope, meaning every template variable lookup inside the partial calls readJSProperty(obj, key, false) and skips the own-property guard. CWE-693 (Protection Mechanism Failure) is the accurate root cause class: the protection mechanism exists and is correctly applied at the top level but fails to propagate through a specific code path (child context creation). The {% include %} tag is not affected because it pushes onto the existing context stack rather than spawning a new context.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

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
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Summary

Context.spawn() in liquidjs creates a child Context for the {% render %} tag but does not propagate the parent context's resolved ownPropertyOnly value. The new context re-derives ownPropertyOnly from opts.ownPropertyOnly (the instance-level option), silently discarding any RenderOptions.ownPropertyOnly override that was supplied to parseAndRender(). As a result, a developer who runs a Liquid instance with the backwards-compatible ownPropertyOnly:false and then locks down an untrusted render with parseAndRender(..., { ownPropertyOnly: true }) still leaks prototype-chain properties from inside any {% render %} partial. This is a distinct exploit surface from the previously identified array-filter variants (where, reject, group_by, find, find_index, has) - the underlying root cause in Context.spawn() is shared, but {% render %} is a separately reachable sink that needs no filter usage.

Details

The bug is in Context.spawn():

ts
// src/context/context.ts:105-114
public spawn (scope = {}) {
  return new Context(scope, this.opts, {
    sync: this.sync,
    globals: this.globals,
    strictVariables: this.strictVariables
    // <-- ownPropertyOnly is missing here
  }, {
    renderLimit: this.renderLimit,
    memoryLimit: this.memoryLimit
  })
}

The constructor resolves ownPropertyOnly as:

ts
// src/context/context.ts:47
this.ownPropertyOnly = renderOptions.ownPropertyOnly ?? opts.ownPropertyOnly

Because spawn() passes a RenderOptions object with no ownPropertyOnly, the child context falls back to opts.ownPropertyOnly (the instance-level option), throwing away any per-render override that the parent context had applied. this.opts is the raw normalized instance options object; it is not mutated to reflect render-time overrides.

The {% render %} tag at src/tags/render.ts:51-77 calls spawn() to build the partial's isolated scope:

ts
* render (ctx: Context, emitter: Emitter): Generator<unknown, void, unknown> {
  const { liquid, hash } = this
  const filepath = (yield renderFilePath(this['file'], ctx, liquid)) as string
  assert(filepath, () => `illegal file path "${filepath}"`)

  const childCtx = ctx.spawn()                    // <-- ownPropertyOnly lost here
  const scope = childCtx.bottom()
  __assign(scope, yield hash.render(ctx))
  ...
  const templates = (yield liquid._parsePartialFile(filepath, childCtx.sync, this['currentFile'])) as Template[]
  yield liquid.renderer.renderTemplates(templates, childCtx, emitter)
}

All template variable lookups inside the partial then go through childCtx.readProperty() (src/context/context.ts:123-135), which calls readJSProperty(obj, key, this.ownPropertyOnly). With childCtx.ownPropertyOnly === false (inherited from opts), the protective check at src/context/context.ts:138-141 is skipped and prototype-chain properties are returned to the template:

ts
export function readJSProperty (obj: Scope, key: PropertyKey, ownPropertyOnly: boolean) {
  if (ownPropertyOnly && !hasOwnProperty.call(obj, key) && !(obj instanceof Drop)) return undefined
  return obj[key]
}

The {% include %} tag is not affected: it does not call spawn(); it pushes onto the parent context's scope stack (src/tags/include.ts:40), so the parent's resolved ownPropertyOnly continues to apply.

Trust model / why this matters: RenderOptions.ownPropertyOnly is documented (src/liquid-options.ts:108-111) as "Same as ownPropertyOnly on LiquidOptions, but only for current render() call". It exists precisely so that developers running a non-strict instance can lock down individual untrusted renders. That contract is broken - the override is silently dropped at every partial boundary.

PoC

bash
mkdir -p /tmp/render-poc
printf '{{ user.passwordHash }}' > /tmp/render-poc/_user.liquid

node -e "
const { Liquid } = require('./dist/liquid.node.js');
const liquid = new Liquid({ ownPropertyOnly: false, root: '/tmp/render-poc' });

class User { constructor(n){ this.name = n; } }
User.prototype.passwordHash = 'bcrypt\$secret';
const u = new User('alice');

liquid.parseAndRender(
  'Direct:[{{ user.passwordHash }}] Render:[{% render \"_user.liquid\", user: user %}]',
  { user: u },
  { ownPropertyOnly: true }
).then(console.log);
"

Verified output on liquidjs 10.25.7:

Direct:[] Render:[bcrypt$secret]

The top-level expression {{ user.passwordHash }} is correctly blocked by the per-render ownPropertyOnly:true, but the same expression inside the partial loaded by {% render %} returns the prototype-chain property - proof that Context.spawn() discarded the override.

Impact

  • Information disclosure: Any prototype-chain property of objects passed into a {% render %} partial - including secrets, hashes, internal state, framework-injected helpers - becomes readable from inside the partial template, even when the developer used the documented per-render lockdown.
  • Realistic threat model: Applications that maintain ownPropertyOnly:false for backwards compatibility (or because their data layer relies on prototype methods) and lock down untrusted-template renders with parseAndRender(..., { ownPropertyOnly:true }) are protected at the top level but silently exposed inside any partial. User-controllable template content (CMS snippets, theme partials, email templates) that uses {% render %} becomes an info-leak primitive.
  • Distinct from existing CVE-2022-25948: the prior advisory only covered direct use of ownPropertyOnly:false; this is a failure of the documented mitigation (ownPropertyOnly:true per-render override), not a missing setting.
  • Distinct from the array-filter variant: same spawn() root cause, but exploitable without invoking where/reject/group_by/find/find_index/has - only requires that the template uses {% render %} (a basic templating feature) and that one of the rendered values has prototype-chain properties.

Recommended Fix

Propagate ownPropertyOnly (and any other security-relevant render options) inside Context.spawn():

ts
// src/context/context.ts
public spawn (scope = {}) {
  return new Context(scope, this.opts, {
    sync: this.sync,
    globals: this.globals,
    strictVariables: this.strictVariables,
    ownPropertyOnly: this.ownPropertyOnly   // <-- propagate resolved per-render value
  }, {
    renderLimit: this.renderLimit,
    memoryLimit: this.memoryLimit
  })
}

Passing this.ownPropertyOnly (the resolved value, not this.opts.ownPropertyOnly) ensures any RenderOptions.ownPropertyOnly override flows into spawned child contexts. This single change closes both the {% render %} pathway documented here and the array-filter pathway tracked separately. A regression test should assert that a partial rendered via {% render %} honours parseAndRender(..., { ownPropertyOnly: true }) against an object with prototype-chain properties.

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 85% 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
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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