# CVE-2025-46571: Open WebUI vulnerable to limited stored XSS vila uploaded html file

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-05T18:45:29.718Z
- Modified: 2026-07-13T16:42:38.729Z
- Also known as: GHSA-8gh5-qqh8-hq3x, PYSEC-2026-2713
- Weaknesses: CWE-79, CWE-87
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.6.6, low privileged users can upload HTML files which contain JavaScript code via the `/api/v1/files/` backend endpoint. This endpoint returns a file id, which can be used to open the file in the browser and trigger the JavaScript code in the user's browser. Under the default settings, files uploaded by low-privileged users can only be viewed by admins or themselves, limiting the impact of this vulnerability. A link to such a file can be sent to an admin, and if clicked, will give the low-privileged user complete control over the admin's account, ultimately enabling RCE via functions. Version 0.6.6 contains a fix for the issue.

(As written by CVE List.)

## Affected

- open-webui open-webui: < 0.6.6
- open-webui (PyPI): before 0.6.6
- openwebui open_webui: before 0.6.6

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-8gh5-qqh8-hq3x> (exploit, vendor-advisory, web)
- <https://github.com/open-webui/open-webui/commit/ef2aeb7c0eb976bac759e59ac359c94a5b8dc7e0> (patch, web)
- <https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/files.py#L434-L438> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46571> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://github.com/open-webui/open-webui/releases/tag/v0.6.6> (web)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-8gh5-qqh8-hq3x> (advisory)

## Sources

- CVE List: [CVE-2025-46571](https://www.cve.org/CVERecord?id=CVE-2025-46571), CVE Terms of Use, modified 2025-05-05
- GitHub Advisory Database: [GHSA-8gh5-qqh8-hq3x](https://github.com/advisories/GHSA-8gh5-qqh8-hq3x), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-46571](https://nvd.nist.gov/vuln/detail/CVE-2025-46571), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2713](https://osv.dev/vulnerability/PYSEC-2026-2713), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-46571 · Whole record: https://cve.day/CVE-2025-46571.json · Rebuilt by cve.day 2026-11-25T22:58:57.599Z
