Skip to main content

Canonical EUVDEUVD-2026-20594

| CVE-2026-35525 HIGH
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-04-08 https://github.com/harttle/liquidjs GHSA-56p5-8mhr-2fph
8.2
CVSS 4.0 · Vendor: https://github.com/harttle/liquidjs
View

Attack ChainAIDerived

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

  1. Access
    Create symlink in partials directory
  2. Exploit
    Point symlink outside allowed root
  3. Execution
    Render template using include/layout tag
  4. Impact
    Load arbitrary file via symlink traversal

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
Exploitation Conditions

Attacker must place a symlink inside the configured partials or layouts directory of a LiquidJS application. The symlink must point outside that directory. Victim's LiquidJS template must load the symlink via {% include %}, {% render %}, or {% layout %} tags. Requires ability to write files to the partials/layouts directory.

Impact

Real-world risk is moderate and highly context-dependent. Without CVSS vector data, assessment relies on impact analysis and deployment patterns. The vulnerability requires authenticated access to create symlinks within template directories, significantly limiting attack surface compared to unauthenticated remote exploits. SSVC technical impact is partial (information disclosure only, no code execution or data modification). Exploitation is not automatable as it requires specific filesystem access and knowledge of target file paths. Primary risk scenarios include multi-tenant CMS platforms where users upload themes, collaborative template repositories where contributors have filesystem access, or containerized environments with mounted volumes. In hardened production deployments with read-only template directories and strict filesystem permissions, exploitability is minimal. The availability of public POC code demonstrates feasibility but the authentication and filesystem access prerequisites prevent widespread exploitation. Organizations using LiquidJS with untrusted template sources should prioritize patching, while those with strictly controlled template directories face lower immediate risk. The canonical path resolution issue is a common oversight in filesystem security controls, making this a valuable case study for secure file handling patterns.

Exploit ScenarioDerived

An attacker with contributor access to a multi-tenant blogging platform uploads a custom theme package containing a malicious symlink in the partials directory. The symlink named evil.liquid points to /etc/passwd on the host system. When administrators preview the theme or the template is rendered, LiquidJS processes {% render "evil.liquid" %} and validates that partials/evil.liquid falls within the allowed template root. Since validation occurs on the symlink path rather than the target, the check passes. The filesystem then follows the symlink during file read operations, causing LiquidJS to render the contents of /etc/passwd into the template output. The attacker exfiltrates sensitive system information including user accounts and configuration details through the rendered page content. Publicly available exploit code exists demonstrating the technique with minimal complexity.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 08, 2026

Path traversal via symlink in LiquidJS npm package allows authenticated template contributors to read arbitrary filesystem content outside configured template roots. The vulnerability affects applications where untrusted users can influence template directories (uploaded themes, extracted archives, repository-controlled templates). LiquidJS validates template paths using string-based directory containment checks but fails to resolve canonical filesystem paths before file access, enabling symlinks placed within allowed partials/layouts directories to reference external files. Publicly available exploit code exists. No EPSS score available, but impact is limited to information disclosure in specific deployment scenarios requiring attacker filesystem access.

RemediationAI

Upgrade to LiquidJS version 10.25.3 or later, which resolves canonical filesystem paths before applying directory containment checks. The vendor-released patch is available via npm package update and documented in GitHub release tag v10.25.3 at github.com/harttle/liquidjs/releases/tag/v10.25.3. The fix implementation is detailed in pull request github.com/harttle/liquidjs/pull/867. For immediate mitigation before patching, implement defense-in-depth controls including restricting filesystem permissions on template directories to prevent symlink creation by untrusted users, enabling operating system symlink protections (nosymfollow mount options on Linux, symlink evaluation policies on Windows), and implementing application-layer validation to detect and reject symlink files during template upload or processing. Applications should audit existing template directories for unauthorized symlinks using find commands or filesystem scanning tools. Review access controls for template management interfaces to ensure only trusted administrators can modify template directory contents. Consider containerization with read-only template volumes for production deployments. Full technical details and security advisory available at github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph.

Affected VersionsENISA

liquidjs < 10.25.3

Affected Packages

npm liquidjs fix: 10.25.3

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 template engine implementing Shopify's Liquid template language for Node.js environments. The vulnerability stems from CWE-61 (UNIX Symbolic Link Following) in the template inclusion mechanism. When processing {% include %}, {% render %}, and {% layout %} directives, LiquidJS performs pathname-based validation against configured root directories without calling realpath() or fs.realpathSync() to resolve symlinks before file operations. The security boundary relies on string prefix matching of the requested path rather than validating the canonical location of the actual file being read. This allows TOCTOU-style bypass where the path validation succeeds on the symlink location but filesystem operations follow the link to read external content. The vulnerability affects the core template resolution logic in the npm package pkg:npm/liquidjs, impacting all applications using partials or layouts features with untrusted template sources.

Know when Canonical 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 8.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA: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
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 08, 2026 - 15:16 nvd
Patch available
CVE Published
Apr 08, 2026 - 15:03 nvd
HIGH 8.2

DescriptionCVE.org

Summary

LiquidJS enforces partial and layout root restrictions using the resolved pathname string, but it does not resolve the canonical filesystem path before opening the file. A symlink placed inside an allowed partials or layouts directory can therefore point to a file outside that directory and still be loaded.

Details

For {% include %}, {% render %}, and {% layout %}, LiquidJS checks whether the candidate path is inside the configured partials or layouts roots before reading it. That check is path-based, not realpath-based.

Because of that, a file like partials/link.liquid passes the directory containment check as long as its pathname is under the allowed root. If link.liquid is actually a symlink to a file outside the allowed root, the filesystem follows the symlink when the file is opened and LiquidJS renders the external target.

So the restriction is applied to the path string that was requested, not to the file that is actually read.

This matters in environments where an attacker can place templates or otherwise influence files under a trusted template root, including uploaded themes, extracted archives, mounted content, or repository-controlled template trees.

PoC

js
const { Liquid } = require('liquidjs');
const fs = require('fs');

fs.rmSync('/tmp/liquid-root', { recursive: true, force: true });
fs.mkdirSync('/tmp/liquid-root', { recursive: true });

fs.writeFileSync('/tmp/secret-outside.liquid', 'SECRET_OUTSIDE');
fs.symlinkSync('/tmp/secret-outside.liquid', '/tmp/liquid-root/link.liquid');

const engine = new Liquid({ root: ['/tmp/liquid-root'] });

engine.parseAndRender('{% render "link.liquid" %}')
  .then(console.log);
// SECRET_OUTSIDE

Impact

If an attacker can place or influence symlinks under a trusted partials or layouts directory, they can make LiquidJS read and render files outside the intended template root. In practice this can expose arbitrary readable files reachable through symlink targets.

Executive ViewAI

Why It Matters

CVE-2026-35525 is a path traversal vulnerability in the LiquidJS npm package that allows authenticated template contributors to read arbitrary files from the server's filesystem. Organizations using LiquidJS with user-uploaded templates, theme systems, or externally-sourced template repositories face unauthorized data exposure risk, particularly if sensitive configuration files, source code, or customer data are stored on the same server.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is impossible: (1) Restrict template directory write access to application-only processes, removing user-level upload capabilities; (2) Implement filesystem-level symlink restrictions using mount options (nofollow) or SELinux policies on template directories; (3) Apply principle of least privilege-ensure application runs with minimal filesystem permissions outside template roots; (4) Monitor filesystem access patterns for unauthorized file reads outside intended template locations.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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.

Related Vulnerabilities in LiquidJS Path Traversal and Memory Issues

View all 3
CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2016-8735 CRITICAL POC
9.8 Apr 06

Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2016-5195 HIGH POC
7.0 Nov 10

Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by lev

CVE-2013-2423 LOW POC
3.7 Apr 17

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 17 and earlier, and

CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

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