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
    • 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-2025-48050

CVE-2025-48050: DOMPurify Path Traversal Vulnerability

CVE-2025-48050 is a path traversal flaw in DOMPurify through version 3.2.5 that affects the scripts/server.js file. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 1, 2026

CVE-2025-48050 Overview

A Path Traversal vulnerability has been identified in DOMPurify through version 3.2.5. The vulnerability exists in scripts/server.js, which fails to ensure that a pathname is located under the current working directory. This allows an attacker to potentially access files outside the intended directory structure through uncontrolled data used in path expressions.

Note: The vendor (Cure53) disputes the significance of this vulnerability, stating that it occurs in a development helper script which starts a local web server only when manually started, and is not part of the production library.

Critical Impact

Network-accessible path traversal vulnerability that could allow unauthorized read access to sensitive files on systems running the development server script, potentially leading to information disclosure.

Affected Products

  • DOMPurify versions through 3.2.5
  • DOMPurify versions prior to commit 6bc6d60
  • Applications using the development server script (scripts/server.js)

Discovery Timeline

  • May 15, 2025 - CVE-2025-48050 published to NVD
  • May 16, 2025 - Last updated in NVD database

Technical Details for CVE-2025-48050

Vulnerability Analysis

This vulnerability is classified as CWE-24 (Path Traversal: '../filedir'), which occurs when external input is used to construct a pathname intended to identify a file or directory within a restricted parent directory, but the software fails to properly neutralize special elements that can cause the pathname to resolve to a location outside the restricted directory.

In the affected DOMPurify development server script, user-supplied URI paths are directly joined with the current working directory without proper validation. This allows attackers to craft malicious requests containing path traversal sequences (such as ../) to escape the intended directory structure and access arbitrary files on the system.

The vulnerability requires network access and has high attack complexity due to the need for the development server to be manually started. However, when exploited, it can result in high confidentiality impact through unauthorized file access and low integrity impact.

Root Cause

The root cause lies in the insecure path construction within scripts/server.js. The original code used path.join(process.cwd(), uri) to construct file paths from user-supplied URIs without validating that the resulting path remained within the current working directory boundary. The path.join() function in Node.js will resolve path segments including .. sequences, allowing directory traversal.

Attack Vector

The attack vector is network-based, requiring an attacker to send crafted HTTP requests to the development server. An attacker could submit requests containing path traversal sequences to access files outside the web root directory:

  1. Attacker identifies a running DOMPurify development server instance
  2. Attacker crafts a malicious request with path traversal sequences (e.g., /../../../etc/passwd)
  3. The vulnerable path.join() resolves the traversal sequence
  4. Server returns contents of files outside the intended directory
javascript
// Vulnerable code (before patch)
    if (uri === '/test/') {
      uri = '/test/index.html';
    }
    filename = path.join(process.cwd(), uri);

// Patched code (after fix)
    if (uri === '/test/') {
      uri = '/test/index.html';
    }
    filename = fs.realpathSync(path.resolve(process.cwd(), uri));
    if (!filename.startsWith(process.cwd())) {
      res.writeHead(403, { 'Content-Type': 'text/plain' });
      res.end('403 Forbidden\n');
      return;
    }

Source: GitHub Commit Update

Detection Methods for CVE-2025-48050

Indicators of Compromise

  • HTTP requests containing path traversal sequences (../, ..%2f, %2e%2e/) targeting a DOMPurify development server
  • Unusual file access patterns in server logs showing requests for files outside the web root
  • Access attempts targeting sensitive system files like /etc/passwd, configuration files, or source code
  • Web server error logs showing 404 or 500 errors for unexpected file paths

Detection Strategies

  • Monitor web server logs for URI patterns containing encoded or plain path traversal sequences
  • Implement Web Application Firewall (WAF) rules to detect and block path traversal attempts
  • Use runtime application security protection (RASP) to monitor file access operations
  • Deploy network intrusion detection signatures for path traversal attack patterns

Monitoring Recommendations

  • Enable verbose logging on development servers to capture full request URIs
  • Implement file integrity monitoring on sensitive directories
  • Set up alerts for access attempts to files outside the intended web root directory
  • Monitor for unusual outbound data transfers that may indicate successful file exfiltration

How to Mitigate CVE-2025-48050

Immediate Actions Required

  • Update DOMPurify to a version containing commit 6bc6d60 or later
  • Ensure the development server script (scripts/server.js) is not running on production or publicly accessible systems
  • Restrict network access to development servers using firewall rules or network segmentation
  • Review web server logs for any indicators of exploitation attempts

Patch Information

The vulnerability has been addressed in GitHub Commit 6bc6d60. The fix implements proper path validation by using fs.realpathSync() to resolve the canonical path and then verifying that the resolved path starts with the current working directory. If the path attempts to escape the working directory, the server now returns a 403 Forbidden response.

Additional resources:

  • GitHub Pull Request #1101
  • Snyk Vulnerability Report
  • Advisory Writeup

Workarounds

  • Do not expose the DOMPurify development server to untrusted networks
  • Restrict the development server to localhost binding only
  • Implement reverse proxy with path validation in front of the development server
  • Use network access controls to limit which hosts can connect to development servers
bash
# Configuration example - Restrict development server to localhost only
# Modify server.js to bind only to localhost
# Replace: server.listen(port)
# With: server.listen(port, '127.0.0.1')

# Alternatively, use iptables to restrict access
iptables -A INPUT -p tcp --dport 8080 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechDompurify

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.39%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-24
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request

  • Cure53 Advisory Writeup

  • Snyk Vulnerability Report
  • Related CVEs
  • CVE-2026-0540: Cure53 DOMPurify XSS Vulnerability

  • CVE-2024-48910: Cure53 DOMPurify XSS Vulnerability

  • CVE-2024-47875: Cure53 DOMPurify XSS Vulnerability

  • CVE-2024-45801: DOMPurify XSS Bypass Vulnerability
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