The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35525

CVE-2026-35525: LiquidJS Path Traversal Vulnerability

CVE-2026-35525 is a path traversal vulnerability in LiquidJS that allows symlink-based directory containment bypass. Attackers can read files outside allowed roots. This article covers technical details, affected versions, and patches.

Published: April 10, 2026

CVE-2026-35525 Overview

CVE-2026-35525 is a Symlink Attack vulnerability affecting LiquidJS, a Shopify/GitHub Pages compatible template engine written in pure JavaScript. Prior to version 10.25.3, LiquidJS fails to properly validate file paths when processing {% include %}, {% render %}, and {% layout %} directives. The template engine performs path-based containment checks rather than resolving symbolic links to their actual targets, allowing attackers to read arbitrary files outside the allowed template roots through carefully crafted symlinks.

Critical Impact

Attackers can bypass directory containment restrictions to read sensitive files outside the configured partials or layouts roots, potentially exposing configuration files, credentials, or other sensitive data in multi-tenant or user-controlled template environments.

Affected Products

  • LiquidJS versions prior to 10.25.3
  • Applications using LiquidJS with user-controllable template directories
  • Systems accepting uploaded themes, extracted archives, or repository-controlled template trees

Discovery Timeline

  • 2026-04-08 - CVE CVE-2026-35525 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-35525

Vulnerability Analysis

This vulnerability stems from a fundamental flaw in how LiquidJS validates template inclusion paths. When a template uses directives like {% include %}, {% render %}, or {% layout %}, LiquidJS checks whether the requested path falls within the configured partials or layouts root directories. However, this validation operates on the path string itself rather than the actual filesystem target after symlink resolution.

For example, if an attacker can create a file at partials/link.liquid that is actually a symbolic link pointing to /etc/passwd or another sensitive file outside the allowed root, LiquidJS will pass the path validation because partials/link.liquid appears to be within the allowed directory. When the file is subsequently opened for reading, the operating system's filesystem layer follows the symlink and reads the external target file, which LiquidJS then renders as template content.

This behavior creates a significant security gap in environments where attackers have any ability to influence the contents of template directories—a common scenario in platforms that accept uploaded themes, process extracted archives (such as ZIP files containing templates), mount external content volumes, or allow repository-controlled template trees.

Root Cause

The root cause is classified as CWE-61 (UNIX Symbolic Link Following). LiquidJS applies directory containment validation to the pathname string before reading, but does not call realpath() or an equivalent function to resolve symlinks and verify that the final target file resides within the allowed boundaries. This creates a Time-of-Check Time-of-Use (TOCTOU) gap where the path that passes validation differs from the file that is actually read.

Attack Vector

The attack requires network access to the vulnerable application and involves the following exploitation scenario:

An attacker who can influence files within a trusted template root (through theme uploads, archive extraction, mounted content, or repository access) creates a symbolic link that appears to be a legitimate template file. The symlink's name and location pass the directory containment check, but it points to a sensitive file outside the allowed root. When the application processes a request that triggers the template inclusion, LiquidJS reads and renders the external file's contents, potentially exposing sensitive information to the attacker.

The vulnerability is particularly dangerous in multi-tenant environments where users can upload custom themes or templates, as a malicious user could create symlinks to access files belonging to other tenants or the hosting system itself.

Detection Methods for CVE-2026-35525

Indicators of Compromise

  • Presence of symbolic links within template directories (partials, layouts) pointing to files outside allowed roots
  • Unexpected file access patterns in server logs showing reads of sensitive system files
  • Template rendering errors or unusual content that appears to contain configuration data or credentials
  • Symlinks in uploaded theme packages or extracted archives targeting paths like /etc/passwd, environment files, or application secrets

Detection Strategies

  • Implement file integrity monitoring on template directories to detect creation of symbolic links
  • Audit uploaded themes and archives for symlinks before extraction or deployment
  • Monitor template engine logs for file read operations that resolve to unexpected paths
  • Deploy application-layer security tools that can detect path traversal attempts via symlink resolution

Monitoring Recommendations

  • Enable verbose logging for LiquidJS template resolution to capture included file paths
  • Configure filesystem monitoring to alert on symlink creation in template directories
  • Implement security scanning in CI/CD pipelines for repository-controlled templates
  • Review web application firewall logs for patterns consistent with information disclosure attempts

How to Mitigate CVE-2026-35525

Immediate Actions Required

  • Upgrade LiquidJS to version 10.25.3 or later immediately
  • Audit existing template directories for unauthorized symbolic links
  • Review recently uploaded themes or templates for malicious symlinks
  • Consider temporarily disabling user-uploaded templates until the patch is applied

Patch Information

The vulnerability has been fixed in LiquidJS version 10.25.3. The patch implements proper symlink resolution to ensure that the actual target file, not just the requested path, is validated against the allowed directory boundaries. Organizations should update their LiquidJS dependency to 10.25.3 or later as soon as possible.

For detailed technical information about the fix, refer to:

  • GitHub Security Advisory GHSA-56p5-8mhr-2fph
  • GitHub Pull Request #867
  • Release Notes for v10.25.3

Workarounds

  • Remove write permissions from template directories to prevent symlink creation by untrusted processes
  • Implement pre-deployment validation scripts that reject symbolic links in template packages
  • Configure chroot or container isolation to limit the filesystem visibility from the template engine process
  • Use filesystem mount options like nosymfollow where available to prevent symlink traversal
bash
# Configuration example
# Scan template directories for symbolic links before deployment
find /app/templates/partials /app/templates/layouts -type l -ls

# Remove any discovered symlinks pointing outside allowed roots
find /app/templates -type l -exec test ! -e {} \; -delete

# Update LiquidJS to patched version
npm update liquidjs@10.25.3

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLiquidjs

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-61
  • Technical References
  • GitHub Pull Request

  • GitHub Release Note

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39859: LiquidJS Path Traversal Vulnerability

  • CVE-2026-30952: LiquidJS Path Traversal Vulnerability

  • CVE-2026-41311: Liquidjs Template Engine DOS Vulnerability

  • CVE-2026-39412: LiquidJS Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English