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-25557

CVE-2026-25557: PHP Directory Listing Script XSS Flaw

CVE-2026-25557 is a reflected cross-site scripting vulnerability in Evoluted PHP Directory Listing Script through version 4.0.5 that allows attackers to inject malicious JavaScript. This article covers technical details, impact, and mitigation.

Published: June 11, 2026

CVE-2026-25557 Overview

CVE-2026-25557 is a reflected cross-site scripting (XSS) vulnerability in Evoluted PHP Directory Listing Script through version 4.0.5. The index.php script reflects the dir parameter value without HTML encoding in two locations: inside the HTML <title> element and inside anchor href attributes within the breadcrumb navigation. Attackers can craft dir parameter values that break out of the title context or inject event handlers into breadcrumb anchors. Successful exploitation executes arbitrary JavaScript in a victim's browser. The flaw maps to [CWE-79] Improper Neutralization of Input During Web Page Generation.

Critical Impact

Attackers can execute arbitrary JavaScript in a victim's browser by tricking the user into visiting a crafted URL, enabling session theft, credential harvesting, and content manipulation in the directory listing interface.

Affected Products

  • Evoluted PHP Directory Listing Script versions through 4.0.5
  • Web applications embedding or deploying the vulnerable index.php script
  • Any hosting environment serving the unmodified Evoluted directory listing code

Discovery Timeline

  • 2026-06-09 - CVE-2026-25557 published to NVD
  • 2026-06-10 - Last updated in NVD database

Technical Details for CVE-2026-25557

Vulnerability Analysis

The vulnerability resides in index.php of the Evoluted PHP Directory Listing Script. The application accepts a user-controlled dir query parameter that specifies the directory to display. The script reflects this value into the rendered HTML response without applying HTML entity encoding. Two distinct sinks are affected: the document <title> element and breadcrumb navigation anchor href attributes. Both sinks render attacker-controlled input directly into the response body, allowing JavaScript execution when a victim loads the crafted URL.

The attack requires user interaction, since the victim must visit a maliciously crafted link. No authentication is required, and the script reflects payloads on every request. Exploitation impacts confidentiality and integrity within the browser context of the targeted user. The EPSS probability is 0.029% (8.681 percentile), indicating low observed exploitation activity at publication.

Root Cause

The root cause is missing output encoding of the dir request parameter prior to insertion into HTML output. The script does not apply htmlspecialchars() or an equivalent context-aware encoder before writing the value into the <title> element or anchor attributes. As a result, characters such as <, >, ", and ' retain their syntactic meaning in HTML, allowing attackers to terminate the current context and inject markup or event handlers.

Attack Vector

The vulnerability is exploited remotely over the network. An attacker constructs a URL containing a malicious dir parameter and delivers it to a victim through phishing, chat, or another channel. Two payload techniques are documented in the VulnCheck Advisory Reflected XSS: breaking out of the <title> element with a closing tag followed by a <script> block, or injecting an event handler such as onmouseover into the breadcrumb anchor href attribute. Refer to the GitHub Gist Code Snippet and the Evoluted Blog PHP Script for source context.

Detection Methods for CVE-2026-25557

Indicators of Compromise

  • Web server access logs containing index.php requests where the dir parameter includes characters such as <, >, ", ', </title>, <script, onerror=, onmouseover=, or javascript:.
  • HTTP referrers originating from external domains followed by requests with anomalous dir parameter values.
  • Browser console errors or content security policy (CSP) violation reports tied to script execution from the directory listing pages.

Detection Strategies

  • Inspect HTTP request logs for the dir query string parameter and flag values that contain HTML metacharacters or event handler keywords.
  • Deploy web application firewall (WAF) rules that match common reflected XSS payload patterns against the dir parameter on URLs serving the Evoluted script.
  • Correlate suspicious URL access with subsequent authentication anomalies or session reuse from unexpected geolocations.

Monitoring Recommendations

  • Enable verbose logging on the web server hosting the directory listing script and forward logs to a centralized analytics platform.
  • Configure CSP reporting endpoints to capture inline script violations on pages rendered by index.php.
  • Alert on outbound requests from end-user browsers to attacker-controlled domains shortly after visits to the directory listing application.

How to Mitigate CVE-2026-25557

Immediate Actions Required

  • Restrict public access to the Evoluted PHP Directory Listing Script until a fix is applied, using authentication or IP allowlisting at the web server layer.
  • Apply server-side input validation that rejects dir parameter values containing HTML metacharacters before the request reaches application code.
  • Add HTML entity encoding to all reflections of the dir parameter in index.php, including the <title> element and breadcrumb anchor attributes.

Patch Information

No vendor patch is referenced in the NVD entry at the time of publication. Administrators should consult the VulnCheck Advisory Reflected XSS and the Evoluted Blog PHP Script for vendor updates. Until an official fix is released, modify the source to wrap the dir parameter output with htmlspecialchars($value, ENT_QUOTES, 'UTF-8') in both reflection sinks.

Workarounds

  • Deploy a WAF rule blocking requests where the dir parameter contains <, >, ", ', or known event handler substrings.
  • Set a strict Content-Security-Policy header that disallows inline scripts and restricts script sources to trusted origins.
  • Remove the breadcrumb navigation rendering logic if the directory listing can operate without it, eliminating one of the two reflection sinks.
bash
# Apache mod_security rule blocking HTML metacharacters in the dir parameter
SecRule ARGS:dir "@rx [<>\"']" \
  "id:1002557,phase:2,deny,status:403,log,msg:'CVE-2026-25557 XSS payload blocked'"

# Nginx CSP header to mitigate inline script execution
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'";

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechEvoluted Php Directory Listing Script

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/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-79
  • Technical References
  • GitHub Gist Code Snippet

  • Evoluted Blog PHP Script

  • VulnCheck Advisory Reflected XSS
  • Latest CVEs
  • CVE-2026-50263: X.org X Server Use-After-Free Flaw

  • CVE-2026-21033: Samsung Assistant RCE Vulnerability

  • CVE-2026-21032: Samsung Assistant RCE Vulnerability

  • CVE-2026-50260: X.org X Server Use-After-Free Flaw
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