CVE-2024-6706: Open WebUI Stored Cross-Site Scripting Vulnerability
Open WebUI before 0.3.14 can be made to run attacker JavaScript in the chat page by a crafted prompt. The prompt coerces the model into emitting malformed markdown that defeats the HTML sanitizer. Upgrade open-webui to 0.3.14.
Published Aug 8, 2024 · Updated Oct 26, 2026 · Analysis Nov 10, 2026
What an attacker can do
KoreLogic describes the mechanism. Open WebUI converts model replies from Markdown to HTML. Special characters outside code blocks are HTML-encoded, but characters inside code blocks are not. A prompt that makes the model output unbalanced triple-backtick fences confuses the sanitizer, so raw HTML such as an img tag with an onerror handler is rendered live and runs in the page (CWE-79).
The attacker needs the victim to submit or open such a prompt or chat, which fits the user-interaction flag and the changed scope in the CVSS vector. Because the payload sits in the chat, it can fire again whenever the chat is viewed. Script in the Open WebUI origin can act as the user and read what the page can read. KoreLogic tested v0.1.105 and demonstrated JavaScript execution. It did not demonstrate token theft. The data marks 0.3.14 as the patched version, although KoreLogic says the maintainers did not answer and the fix appears to have landed silently.
Who is affected
open-webui below 0.3.14. KoreLogic tested 0.1.105. Check:
pip show open-webuiAny instance where users paste prompts or open shared chats from other people is the most exposed.
open-webui
- Ecosystem
- PyPI
- Affected
- < 0.3.14
- Fixed in
- 0.3.14
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.3.14:
pip install --upgrade "open-webui>=0.3.14"The sources give no workaround. Re-test with KoreLogic's proof of concept after upgrading, since the vendor published no fix notes. Treat prompts and shared chats from untrusted sources with care until then.
How to tell if you were hit
Look in stored chat history for model output containing unbalanced triple backticks followed by HTML such as img tags with onerror, script tags or javascript: URLs. Check access logs for chat pages followed by requests to unfamiliar external hosts.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Attackers can craft a malicious prompt that coerces the language model into executing arbitrary JavaScript in the context of the web page.
Credited to Classic298.
Questions
- Does the attacker need access to the model?
They need to get a crafted prompt into a chat the victim submits or views. The model then produces the malformed markdown.
- Which version fixes CVE-2024-6706?
open-webui 0.3.14, per the advisory data.
- Why does the sanitizer fail?
Content inside markdown code blocks is not HTML-encoded, and unbalanced code fences make raw HTML render as markup.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Open WebUI vulnerabilities
All Open WebUI entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
