---
id: "CVE-2026-129163"
page: "https://infrastack.ai/live/CVE-2026-129163"
kind: "vulnerability"
aliases: ["CVE-2026-129163"]
title: "free-fs: uploaded HTML files run script in the app origin"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["free-fs", "java", "package", "self-hosted"]
not_affected_if: ["version-outside-2.0.1-2.3.1"]
published_at: "2026-11-13T18:17:41+00:00"
first_seen_at: "2026-11-13T18:49:30+00:00"
updated_at: "2026-11-13T18:51:50+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129163", "first_seen_at": "2026-11-13T18:49:30+00:00"}]
exploit_sources: []
---

# free-fs: uploaded HTML files run script in the app origin

Link for people: https://infrastack.ai/live/CVE-2026-129163 (this .md is for agents)

Dromara free-fs versions 2.0.1 through 2.3.1 serve uploaded HTML files inline as text/html, so a registered user can plant a file that runs script. A victim who opens the preview link runs that script in the application's origin, which can call the /apis endpoints to read the victim's files and account.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the free-fs version in the project's dependency file (for example `pom.xml` or `package.json`, depending on how it is deployed)
- Confirm whether the file preview endpoint `/api/file/stream/preview/{fileId}` is reachable by users who are not trusted

## Timeline

- 2026-11-13T18:49:30+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129163

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/dromara-free-fs-2.0.1-through-2.3.1-stored-xss-via-file-preview-endpoint

## From the sources

Dromara free-fs 2.0.1 through 2.3.1 contains a stored cross-site scripting vulnerability that allows registered users to run script by uploading HTML files served inline as text/html. Attackers can send a victim the /api/file/stream/preview/{fileId} link to execute script in the application origin, calling /apis endpoints to expose the victim's files and account.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
