Vulnerabilities in pkg:npm/liquidjs
PACKAGECVE-2026-106120 is a MODERATE ownpropertyonly bypass for inherited array vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting LiquidJS libraries in the npm ecosystem. The issue involves ownpropertyonly bypass for inherited array indices in first/last/join/reverse/slice/compact, `.first`/`.last`, negative index, and for-loop iteration. Remediation is available by upgrading affected packages to version 10.27.2.
pkg:npm/liquidjs
Vulnerability advisories affecting package pkg:npm/liquidjs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-fwxr-j5w2-587m | CVE-2026-106120 | MODERATE | LiquidJS: ownPropertyOnly bypass for inherited array indices in first/last/join/reverse/slice/compact, `.first`/`.last`, negative index, and for-loop iteration |
| GHSA-4r6h-5v86-94p3 | CVE-2026-69222 | HIGH | LiquidJS: Uncontrolled Resource Consumption in `join` filter allows template authors to bypass `memoryLimit` and crash the process |
| GHSA-m7fp-h3p4-hr49 | CVE-2026-61556 | HIGH | LiquidJS has an infinite loop vulnerability in its `strip_html` filter |
| GHSA-g357-x5c3-c72p | CVE-2026-55575 | HIGH | LiquidJS: `pop` filter bypasses `memoryLimit` accounting that its array-filter siblings enforce |
| GHSA-r7g9-xpmj-5fcq | CVE-2026-45617 | HIGH | LiquidJS Vulnerable to ReDoS via Quadratic Backtracking in `strip_html` Filter Regex |
| GHSA-hh27-hf48-9f5q | CVE-2026-45357 | HIGH | LiquidJS has a memory and render limit bypass via unbounded width padding in `date` filter (strftime) |
| GHSA-9x9p-qf8f-mvjg | CVE-2026-44646 | MODERATE | LiquidJS's `{% render %}` tag silently bypasses per-render `ownPropertyOnly:true` via `Context.spawn()` |
| GHSA-8xx9-69p8-7jp3 | CVE-2026-44645 | MODERATE | LiquidJS has a renderLimit DoS guard bypass via empty `{% for %}` body |
| GHSA-2qv6-9wx5-cwv4 | CVE-2026-44644 | MODERATE | LiquidJS's strip_html filter bypass via newline characters in HTML tags enables XSS |
| GHSA-gf2q-c269-pqgc | CVE-2026-45618 | CRITICAL | LiquidJS is Vulnerable to Remote Code Execution |
| GHSA-4rc3-7j7w-m548 | CVE-2026-41311 | HIGH | liquidjs has a Denial of Service via circular block reference in layout |
| GHSA-56p5-8mhr-2fph | CVE-2026-35525 | HIGH | LiquidJS: Root restriction bypass for partial and layout loading through symlinked templates |
| GHSA-v273-448j-v4qj | CVE-2026-39859 | MODERATE | LiquidJS: `renderFile()` / `parseFile()` bypass configured `root` and allow arbitrary file read |
| GHSA-rv5g-f82m-qrvv | CVE-2026-39412 | MODERATE | LiquidJS: ownPropertyOnly bypass via sort_natural filter — prototype property information disclosure through sorting side-channel |
| GHSA-mmg9-6m6j-jqqx | CVE-2026-34166 | LOW | LiquidJS Has Memory Limit Bypass via Quadratic Amplification in `replace` Filter |
| GHSA-9r5m-9576-7f6x | CVE-2026-33285 | HIGH | LiquidJS: memoryLimit Bypass through Negative Range Values Leads to Process Crash |
| GHSA-6q5m-63h6-5x4v | CVE-2026-33287 | HIGH | LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern |
| GHSA-wmfp-5q7x-987x | CVE-2026-30952 | HIGH | liquidjs has a path traversal fallback vulnerability |
| GHSA-45rm-2893-5f49 | CVE-2022-25948 | MODERATE | liquidjs may leak properties of a prototype |
CVE-2026-106120 at a Glance
How to Fix CVE-2026-106120
To remediate this vulnerability, upgrade all affected LiquidJS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install liquidjs@10.27.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls liquidjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-106120, inspect your project dependencies using npm:
npm ls liquidjs
Analyze the terminal output to locate any version of LiquidJS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.27.2), your application is affected.
Note: The npm ls liquidjs command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In LiquidJS, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-106120 Affected LiquidJS Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
liquidjs
|
npm |
< 10.27.2
|
10.27.2
|
References
Frequently Asked Questions
What is CVE-2026-106120?
Which LiquidJS versions are affected?
What version fixes CVE-2026-106120?
Is liquidjs affected?
What CWE is associated with CVE-2026-106120?
How can I check npm dependencies for CVE-2026-106120?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fwxr-j5w2-587m",
"modified" : "2026-10-07T16:19:09Z",
"published" : "2026-10-07T16:19:09Z",
"aliases" : [ "CVE-2026-106120" ],
"summary" : "LiquidJS: ownPropertyOnly bypass for inherited array indices in first/last/join/reverse/slice/compact, `.first`/`.last`, negative index, and for-loop iteration",
"details" : "## Summary\n\nLiquidJS’s `ownPropertyOnly` option is intended to prevent templates from reading inherited or prototype properties from scope data. \nWith `ownPropertyOnly: true`, direct access such as:\n\n```liquid\n{{ a[0] }}\n```\n\ncorrectly blocks an inherited array index. However, the same inherited value is still disclosed through:\n\n```text\n.first\n.last\nnegative indexing\nfor-loop iteration\nfirst\nlast\njoin\nreverse\nslice\ncompact\n```\n\n## Impact\n\nThis is an information disclosure issue when an application relies on `ownPropertyOnly: true` to safely render templates over untrusted or prototype-polluted scope data.\n\nObject prototype property reads are blocked as expected, but inherited `Array.prototype` index reads are not consistently blocked. An attacker who can influence prototype state or inherited array-index data may cause templates to disclose values that `ownPropertyOnly` is expected to hide.\n\n\n## Proof of concept\n\n```js\nconst { Liquid } = require(\"liquidjs\");\n\nconst engine = new Liquid({ ownPropertyOnly: true });\n\nArray.prototype[0] = \"ARRAY_PROTO_POLLUTED\";\nObject.prototype.secret = \"OBJECT_PROTO_POLLUTED\";\n\nconst a = [];\na.length = 1;\n\nconst o = {};\n\nfor (const [src, scope] of [\n [\"{{ a[0] }}\", { a }],\n [\"{{ a[-1] }}\", { a }],\n [\"{{ o.secret }}\", { o }],\n [\"{{ a.first }}\", { a }],\n [\"{{ a.last }}\", { a }],\n [\"{{ a | first }}\", { a }],\n [\"{{ a | last }}\", { a }],\n [\"{{ a | join: ',' }}\", { a }],\n [\"{{ a | reverse | first }}\", { a }],\n [\"{{ a | slice: 0, 1 | join: ',' }}\", { a }],\n [\"{{ a | compact | join: ',' }}\", { a }],\n [\"{% for x in a %}[{{ x }}]{% endfor %}\", { a }],\n]) {\n console.log(src, \"=>\", JSON.stringify(engine.parseAndRenderSync(src, scope)));\n}\n\ndelete Array.prototype[0];\ndelete Object.prototype.secret;\n```\n\n## Observed behavior\n\n```text\n{{ a[0] }} => \"\"\n{{ a[-1] }} => \"ARRAY_PROTO_POLLUTED\"\n{{ o.secret }} => \"\"\n{{ a.first }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a.last }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | first }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | last }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | join: ',' }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | reverse | first }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | slice: 0, 1 | join: ',' }} => \"ARRAY_PROTO_POLLUTED\"\n{{ a | compact | join: ',' }} => \"ARRAY_PROTO_POLLUTED\"\n{% for x in a %}[{{ x }}]{% endfor %} => \"[ARRAY_PROTO_POLLUTED]\"\n```\n\n## Expected behavior\n\nWhen `ownPropertyOnly: true` is enabled, inherited array indices should be treated as absent, matching the behavior of:\n\n```liquid\n{{ a[0] }}\n{{ o.secret }}\n```\n\nInherited or prototype-provided array-index values should not be exposed through array filters, array properties, negative indexing, or loop iteration.\n\n## Root cause\n\n`ownPropertyOnly` appears to be enforced in `readJSProperty()`, but several array-element access paths use raw or native array operations instead.\n\nExamples include:\n\n```text\nnegative indexing using obj[obj.length + key]\nreadFirst/readLast using obj[0] / obj[obj.length - 1]\nfilters such as first, last, join, reverse, slice, and compact operating on arrays through native element reads\nfor-loop iteration materializing inherited array indices\n```\n\nBecause these paths do not consistently check whether an array index is an own property, inherited array indices can be read even when `ownPropertyOnly` is enabled.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "liquidjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.27.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.27.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/security/advisories/GHSA-fwxr-j5w2-587m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-106120"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/pull/924"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/commit/552819a84b80c62306fe61072628a756272dc749"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/harttle/liquidjs"
}, {
"type" : "WEB",
"url" : "https://github.com/harttle/liquidjs/releases/tag/v10.27.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-07T16:19:09Z",
"nvd_published_at" : "2026-10-06T19:17:42Z"
}
}