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

CVE-2026-25154: LocalSend XSS Vulnerability

CVE-2026-25154 is a cross-site scripting flaw in LocalSend file-sharing app affecting versions up to 1.17.0. The vulnerability exists in the Share via Link feature's web interface. This post covers technical details, affected versions, impact, and mitigation steps.

Published: February 6, 2026

CVE-2026-25154 Overview

CVE-2026-25154 is a Cross-Site Scripting (XSS) vulnerability discovered in LocalSend, a free, open-source application that enables users to share files and messages with nearby devices over their local network without requiring an internet connection. The vulnerability exists in versions up to and including 1.17.0, where the "Share via Link" feature fails to properly sanitize user-controlled input when rendering the file list in the web interface.

When a user initiates a "Share via Link" session, the LocalSend application starts a local HTTP server to host the selected files. The client-side logic for this web interface is contained in app/assets/web/main.js. The handleFilesDisplay function constructs the HTML for the file list by iterating over the files received from the server, but does not adequately sanitize file names or other user-controllable data before inserting them into the DOM.

Critical Impact

Attackers can inject malicious JavaScript code that executes in the context of victims' browsers when they access a shared link, potentially leading to session hijacking, credential theft, or redirection to malicious sites.

Affected Products

  • LocalSend versions up to and including 1.17.0
  • LocalSend Share via Link feature (app/assets/web/main.js)
  • LocalSend local HTTP server component

Discovery Timeline

  • 2026-01-30 - CVE CVE-2026-25154 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25154

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting (XSS). The flaw occurs in the client-side JavaScript responsible for rendering shared files in the web-based interface.

When LocalSend hosts files through its "Share via Link" feature, the handleFilesDisplay function in app/assets/web/main.js dynamically constructs HTML elements to display the list of available files. The function iterates over file metadata received from the local HTTP server and directly inserts this data into the DOM without proper encoding or sanitization.

An attacker with the ability to control file names or metadata (such as by having the victim share a maliciously named file) can inject arbitrary JavaScript code that will execute when another user views the shared file listing in their browser. This attack requires user interaction, as the victim must access the shared link generated by LocalSend.

Root Cause

The root cause of this vulnerability lies in the unsafe DOM manipulation practices within the handleFilesDisplay function. Instead of using safe methods like textContent or properly escaping HTML entities, the code constructs HTML strings by concatenating user-controllable data directly into innerHTML or similar DOM insertion points.

This pattern of unsafe string concatenation for HTML generation is a common source of XSS vulnerabilities in JavaScript applications. The file names and potentially other metadata fields are trusted implicitly without validation, allowing script injection through specially crafted file names containing HTML/JavaScript payloads.

Attack Vector

The attack vector for CVE-2026-25154 requires network access and user interaction. An attacker could exploit this vulnerability through the following scenario:

  1. The attacker creates a file with a malicious name containing JavaScript code (e.g., <img src=x onerror=alert(document.cookie)>.txt)
  2. The attacker convinces a victim to share files using LocalSend's "Share via Link" feature, including the malicious file
  3. When any user (including the original sharer) accesses the generated link, the malicious script executes in their browser context
  4. The injected script can steal cookies, redirect users, or perform actions on behalf of the authenticated user

The vulnerability can also be exploited if the attacker can modify file metadata in transit on the local network, though this would require additional attack prerequisites.

Detection Methods for CVE-2026-25154

Indicators of Compromise

  • Unusual file names containing HTML tags or JavaScript syntax (e.g., <script>, onerror=, onclick=)
  • HTTP requests to LocalSend's local server containing encoded script payloads in URL parameters
  • Browser console errors indicating blocked inline script execution (if CSP is present)
  • Unexpected outbound network connections from browsers after accessing LocalSend share links

Detection Strategies

  • Monitor local network traffic for LocalSend HTTP server instances hosting files with suspicious naming patterns
  • Implement endpoint detection rules to identify files with HTML/JavaScript content in their filenames
  • Review browser history and network logs for access to LocalSend share links followed by unexpected requests
  • Deploy web application firewall rules to detect XSS payloads in local network HTTP traffic

Monitoring Recommendations

  • Enable verbose logging on endpoints running LocalSend to track "Share via Link" sessions
  • Configure SentinelOne to monitor process behavior for LocalSend instances spawning HTTP servers
  • Implement network segmentation monitoring to detect lateral movement following potential XSS exploitation
  • Review user-reported incidents involving unexpected browser behavior after using LocalSend sharing features

How to Mitigate CVE-2026-25154

Immediate Actions Required

  • Update LocalSend to a version that includes commit 8f3cec85aa29b2b13fed9b2f8e499e1ac9b0504c or later
  • Avoid using the "Share via Link" feature until the patch is applied
  • Review any files shared via LocalSend for suspicious naming patterns before sharing
  • Consider using alternative file sharing methods for sensitive transfers until patched

Patch Information

The LocalSend development team has released a fix in commit 8f3cec85aa29b2b13fed9b2f8e499e1ac9b0504c. This patch addresses the XSS vulnerability by implementing proper output encoding in the handleFilesDisplay function, ensuring that user-controllable data is safely escaped before being inserted into the DOM.

Users should update to the latest version of LocalSend that includes this fix. For more details, refer to the GitHub Security Advisory GHSA-34v6-52hh-x4r4 and the security patch commit.

Workarounds

  • Disable or avoid using the "Share via Link" feature and use direct device-to-device transfers instead
  • Validate all file names before initiating a share session, rejecting files with HTML characters (<, >, ", ', &)
  • Use browser extensions or settings that block inline JavaScript execution when accessing LocalSend share links
  • Deploy a Content Security Policy (CSP) via browser extension that restricts script execution on localhost pages
bash
# Check LocalSend version and verify patch status
# Verify the installed version includes the security fix
localsend --version

# On systems with git, verify the patch commit is present
# Navigate to LocalSend installation directory and check
git log --oneline | grep 8f3cec85

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLocal Send

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.03%

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

  • GitHub Security Advisory GHSA-34v6-52hh-x4r4
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi 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