# CVE-2026-25154: LocalSend has Stored XSS in Web Share Interface via Filename

> Attackers can inject malicious scripts via filenames in LocalSend's web share interface, potentially executing code or stealing data from users viewing the shared files.

- **Severity:** Medium 6.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 30 Jan 2026
- **Updated:** 2 Feb 2026
- **Also known as:** GHSA-34v6-52hh-x4r4

## What is CVE-2026-25154?

CVE-2026-25154 is a medium-severity cross-site scripting vulnerability in localsend, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

LocalSend is a free, open-source app that allows users to share files and messages with nearby devices over their local network without needing an internet connection. In versions up to and including 1.17.0, 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`. Note that at [0], the `handleFilesDisplay` function constructs the HTML for the file list by iterating over the files received from the server. Commit 8f3cec85aa29b2b13fed9b2f8e499e1ac9b0504c contains a patch.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2026-25154?

It affects 1 product.


Products: Localsend Localsend.

## How do I fix CVE-2026-25154?

No fix has been published for CVE-2026-25154 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-25154 being exploited?

There is no known exploitation of CVE-2026-25154 in the wild and no public exploit code.

## Other vulnerabilities in localsend

- [CVE-2025-54792](https://insights.sbomify.com/CVE-2025-54792/): LocalSend is Vulnerable to Man-in-the-Middle Attacks, Leading to File Interception (critical 9.3)
- [CVE-2025-27142](https://insights.sbomify.com/CVE-2025-27142/): LocalSend path traversal vulnerability in the file upload endpoint allows nearby devices to execute arbitrary commands (medium 6.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-25154 and fix it if it is affected.

What it is: CVE-2026-25154 is a medium-severity cross-site scripting vulnerability in localsend, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-25154 in the wild and no public exploit code.

Affected product: localsend. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-25154/ (Markdown: https://insights.sbomify.com/CVE-2026-25154/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-25154
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-25154
- OSV: https://osv.dev/vulnerability/CVE-2026-25154

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-25154/
Summaries are generated and may contain mistakes; the official description above is the record.
