Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-22256

CVE-2026-22256: Salvo Rust Framework XSS Vulnerability

CVE-2026-22256 is a reflected XSS flaw in Salvo Rust web framework that allows attackers to inject malicious scripts through unsanitized file path rendering. This article covers technical details, affected versions, and patches.

Updated: January 22, 2026

CVE-2026-22256 Overview

CVE-2026-22256 is a reflected Cross-Site Scripting (XSS) vulnerability discovered in Salvo, a Rust web backend framework. The vulnerability exists in the list_html function that generates a file view of directories. The current request path is rendered in the HTML output without proper sanitization, allowing attackers to inject malicious scripts through crafted URLs. Although the request path is decoded and normalized during the matching stage, it is inserted raw into the HTML view via current.path, creating an injection point for XSS attacks.

Critical Impact

Attackers can execute arbitrary JavaScript in victims' browsers by crafting malicious URLs, potentially leading to session hijacking, credential theft, and unauthorized actions on behalf of authenticated users.

Affected Products

  • Salvo Web Framework versions prior to 0.88.1
  • Applications using Salvo's static file serving with directory listing enabled
  • Web services exposing directory browsing functionality through Salvo

Discovery Timeline

  • January 8, 2026 - CVE-2026-22256 published to NVD
  • January 8, 2026 - Last updated in NVD database

Technical Details for CVE-2026-22256

Vulnerability Analysis

This reflected XSS vulnerability stems from improper output encoding in Salvo's directory listing functionality. The list_html function in dir.rs renders directory contents as HTML, including the current path in the output. The core issue is that while Salvo's routing layer performs URL decoding and path normalization during request matching, the path value is subsequently inserted directly into the HTML response without HTML entity encoding or other sanitization measures.

The vulnerability can be exploited when a directory listing page is accessible and the root path contains at least one subdirectory (such as styles/, scripts/, or similar common directories). This constraint exists because without a valid subdirectory, the application returns a "Not Found" page instead of rendering the directory listing HTML that contains the vulnerable code path.

When a victim clicks a malicious link containing JavaScript payload in the URL path, the unsanitized path is reflected in the HTML response, causing the browser to execute the injected script in the context of the vulnerable application's origin.

Root Cause

The root cause is a missing output encoding step in the list_html function located in crates/serve-static/src/dir.rs. Specifically, at line 593, the current.path value is embedded into the HTML template without escaping special HTML characters such as <, >, ", ', and &. This allows URL-encoded payloads to bypass server-side filters during routing, only to be decoded and rendered as executable HTML/JavaScript in the victim's browser.

Attack Vector

The attack is network-based and requires user interaction—specifically, the victim must click a malicious link or visit a compromised page that redirects to the vulnerable endpoint. An attacker constructs a URL targeting the static file serving endpoint with an XSS payload embedded in the path. The payload must be URL-encoded to pass through the initial request processing, after which it gets decoded and inserted into the HTML response.

For example, an attacker could craft a URL targeting a path like /files/<script>alert(1)</script>/styles/ where the malicious script is URL-encoded. When the server processes this request and finds a matching subdirectory, it renders the directory listing with the unsanitized path, executing the attacker's JavaScript in the victim's browser.

For detailed technical information, see the GitHub Security Advisory and the vulnerable code section.

Detection Methods for CVE-2026-22256

Indicators of Compromise

  • Unusual URL patterns in web server logs containing HTML tags or JavaScript keywords (encoded or decoded) in directory paths
  • HTTP requests to static file endpoints with <script>, onerror=, onload=, or similar XSS payload patterns
  • Client-side security tools or browser extensions blocking script execution from directory listing pages
  • User reports of unexpected behavior or redirects when accessing file listing pages

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block requests containing XSS payloads in URL paths
  • Implement Content Security Policy (CSP) headers to mitigate the impact of successful XSS attacks by restricting script execution
  • Configure intrusion detection systems to alert on URL patterns containing encoded HTML special characters targeting static file endpoints
  • Use runtime application self-protection (RASP) solutions to detect XSS exploitation attempts

Monitoring Recommendations

  • Enable verbose logging on static file serving endpoints and monitor for anomalous path patterns
  • Set up alerts for requests to directory listing endpoints containing non-alphanumeric characters beyond standard path separators
  • Monitor browser console errors from client-side telemetry that may indicate blocked XSS attempts
  • Review access logs periodically for reconnaissance activity targeting directory structures

How to Mitigate CVE-2026-22256

Immediate Actions Required

  • Upgrade Salvo to version 0.88.1 or later immediately, which contains the security patch for this vulnerability
  • If immediate upgrade is not possible, disable directory listing functionality until the patch can be applied
  • Implement Content Security Policy headers as a defense-in-depth measure to reduce XSS impact
  • Conduct a security review of any custom handlers that render user-controlled input in HTML responses

Patch Information

The Salvo development team has addressed this vulnerability in version 0.88.1. The fix implements proper HTML entity encoding for the current.path value before inserting it into the directory listing HTML template. Organizations using affected versions should update to 0.88.1 or the latest available version. Detailed patch information and the security advisory are available at the GitHub Security Advisory.

Workarounds

  • Disable the directory listing feature entirely by removing or reconfiguring static file serving handlers
  • Place a reverse proxy or WAF in front of the application configured to strip or reject requests with suspicious characters in paths
  • Implement server-side input validation to reject requests containing HTML special characters in file paths
  • Use network segmentation to limit exposure of directory listing endpoints to trusted networks only
bash
# Update Salvo to patched version in Cargo.toml
# Change: salvo = "0.88.0" or earlier
# To: salvo = "0.88.1"
cargo update -p salvo
cargo build --release

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechSalvo

  • SeverityHIGH

  • CVSS Score8.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Code Snippet

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-22257: Salvo Framework XSS Vulnerability

  • CVE-2026-33241: Salvo Web Framework DoS Vulnerability

  • CVE-2026-33242: Salvo Path Traversal 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