CVE-2026-30952 Details
Description
liquidjs is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.0, the layout, render, and include tags allow arbitrary file access via absolute paths (either as string literals or through Liquid variables, the latter require dynamicPartials: true, which is the default). This poses a security risk when malicious users are allowed to control the template content or specify the filepath to be included as a Liquid variable. This vulnerability is fixed in 10.25.0.
A path traversal vulnerability has been identified in LiquidJS, a template engine compatible with Shopify and GitHub Pages. This vulnerability exists in versions prior to 10.25.0 and allows arbitrary file access through absolute paths. The issue arises in the layout, render, and include tags, which can be exploited using string literals or Liquid variables. The latter requires dynamicPartials to be enabled, which is the default setting. This vulnerability poses a security risk when users can control template content or specify file paths as Liquid variables.
Users can upgrade to LiquidJS version 10.25.0 or later, where this vulnerability has been fixed. Alternatively, the default 'fs' option can be overridden to implement custom file access controls that prevent path traversal.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/harttle/liquidjs/commit/3cd024d652dc883c46307581e979fe32302adbac | [email protected] | Patch |
| https://github.com/harttle/liquidjs/pull/851 | [email protected] | Issue TrackingPatch |
| https://github.com/harttle/liquidjs/pull/855 | [email protected] | Issue TrackingPatch |
| https://github.com/harttle/liquidjs/security/advisories/GHSA-wmfp-5q7x-987x | [email protected] | MitigationPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| liquidjs liquidjs | < 10.25.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | Initial Analysis | [email protected] |
| Mar 10, 2026 | New CVE Received | [email protected] |