A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-35613

CVE-2026-35613: coursevault-preview Path Traversal Flaw

CVE-2026-35613 is a path traversal vulnerability in coursevault-preview that allows attackers to read files outside the configured directory. This article covers technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-35613 Overview

CVE-2026-35613 is a path traversal vulnerability affecting coursevault-preview, a utility for previewing course material files from a configured directory. Versions prior to 0.1.1 contain a flaw in the resolveSafe utility where the boundary check uses String.prototype.startsWith(baseDir) on a normalized path. This approach does not properly enforce directory boundaries, allowing attackers who control the relativePath argument to read files outside the configured baseDir when a sibling directory exists whose name shares the same string prefix.

Critical Impact

Attackers can bypass directory restrictions to access sensitive files outside the intended base directory, potentially exposing configuration files, credentials, or other confidential course materials.

Affected Products

  • coursevault-preview versions prior to 0.1.1

Discovery Timeline

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

Technical Details for CVE-2026-35613

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists in the resolveSafe utility function within coursevault-preview. The core issue lies in how the application validates whether a requested file path remains within the allowed base directory. The vulnerable implementation uses JavaScript's String.prototype.startsWith(baseDir) method to check if a normalized path begins with the expected base directory string.

The fundamental flaw is that startsWith() performs a simple string prefix comparison rather than enforcing actual directory hierarchy boundaries. For instance, if the configured baseDir is /app/courses, an attacker could potentially access /app/courses-private/secret.txt because the path string technically starts with /app/courses. This occurs when a sibling directory shares the same naming prefix as the base directory.

Successful exploitation requires local access and depends on the existence of similarly-named sibling directories on the target system. While the attack complexity is elevated due to these prerequisites, successful exploitation can lead to disclosure of highly sensitive information outside the intended directory scope.

Root Cause

The root cause is improper input validation in the path resolution logic. The resolveSafe function relies on string prefix matching (startsWith()) rather than proper directory hierarchy validation. A secure implementation would ensure that after path normalization, the resulting path not only starts with the base directory string but also continues with a path separator or terminates at the exact base directory length, confirming the target is genuinely within the directory tree.

Attack Vector

The attack vector is local, requiring the attacker to have some level of access to control the relativePath argument passed to CoursevaultPreview methods. The exploitation scenario involves:

  1. Identifying the configured baseDir for the coursevault-preview instance
  2. Discovering sibling directories that share the same string prefix as the baseDir
  3. Crafting a malicious relativePath that, when normalized and concatenated, points to a sibling directory
  4. Reading sensitive files from the sibling directory that would normally be inaccessible

The vulnerability mechanism works through prefix confusion in path validation. When the application validates a path like /courses-backup/sensitive.txt against a base directory of /courses, the startsWith('/courses') check passes because both strings begin with /courses, even though the target file resides in a completely different directory tree. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-35613

Indicators of Compromise

  • Unexpected file access attempts to directories with similar prefixes to the configured base directory
  • Log entries showing file reads from sibling directories that share naming prefixes with the baseDir
  • Access patterns requesting paths that resolve outside the expected course materials directory

Detection Strategies

  • Monitor file system access logs for reads to directories adjacent to the configured baseDir
  • Implement runtime application logging to track relativePath arguments passed to CoursevaultPreview methods
  • Audit application configurations to identify instances running vulnerable versions (prior to 0.1.1)

Monitoring Recommendations

  • Enable detailed file access logging on directories containing sensitive data near coursevault-preview base directories
  • Configure alerts for file access attempts to paths that closely resemble but differ from legitimate course material paths
  • Review application logs periodically for unusual path resolution patterns

How to Mitigate CVE-2026-35613

Immediate Actions Required

  • Upgrade coursevault-preview to version 0.1.1 or later immediately
  • Audit file system structure to identify sibling directories with prefixes matching existing baseDir configurations
  • Review access logs for evidence of prior exploitation attempts
  • Restrict file system permissions to limit potential information disclosure

Patch Information

The vulnerability is fixed in coursevault-preview version 0.1.1. The fix addresses the improper boundary check in the resolveSafe utility by implementing proper directory hierarchy validation rather than simple string prefix matching. Users should upgrade to version 0.1.1 or later to remediate this vulnerability. For additional details, see the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, ensure no sibling directories exist with names that share the same string prefix as the configured baseDir
  • Implement additional file system permission restrictions to prevent read access to sensitive directories
  • Consider isolating the coursevault-preview instance in a container or chroot environment with minimal file system exposure
  • Add network-level access controls to limit who can interact with affected coursevault-preview instances
bash
# Upgrade coursevault-preview to the patched version
npm update coursevault-preview@0.1.1

# Alternatively, install the specific patched version
npm install coursevault-preview@0.1.1

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechCoursevault

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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