{"id":"CVE-2024-6706","kind":"vulnerability","aliases":["CVE-2024-6706","GHSA-5jp3-wp5v-5363"],"related":[],"title":"Open WebUI Stored Cross-Site Scripting Vulnerability","description":"Attackers can craft a malicious prompt that coerces the language model into executing arbitrary JavaScript in the context of the web page.","summary":"Open WebUI, a web front end for language models, can be coaxed by a crafted prompt into outputting JavaScript that executes in the page. An attacker who gets a malicious prompt in front of another user can run script in that user's browser session.","severity":"medium","cvss":6.3,"epss":0.00657,"exploited":false,"exploited_at":null,"products":[{"name":"open-webui","fixed":["0.3.14"],"affected":"< 0.3.14","ecosystem":"pypi"},{"name":"openwebui open webui","fixed":[],"affected":"= 0.1.105","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","cwe-79","open-webui","python","self-hosted"],"not_affected_if":["version-0.3.14-or-later"],"how_to_check":"- Check the installed version with `pip show open-webui`; versions below `0.3.14` are affected.\n- unknown","fix":"- Upgrade the open-webui package to `0.3.14` or later.","status":"open","published_at":"2024-08-07T23:15:41+00:00","first_seen_at":"2026-10-26T15:12:52+00:00","triaged_at":"2026-10-26T15:13:41+00:00","updated_at":"2026-10-26T16:02:26+00:00","category":"ai-tooling","confidence":0.6,"triage":{"at":"2026-10-26T15:13:41Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the open-webui package to `0.3.14` or later.","reach":"internet","title":"Open WebUI: crafted prompt runs attacker JavaScript in users' browsers","impact":"medium","summary":"Open WebUI, a web front end for language models, can be coaxed by a crafted prompt into outputting JavaScript that executes in the page. An attacker who gets a malicious prompt in front of another user can run script in that user's browser session.","category":"ai-tooling","nicknames":[],"who_cares":["open-webui","self-hosted","python"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Script runs in victim's browser session, potentially stealing session data","analyst_note":"","how_to_check":"- Check the installed version with `pip show open-webui`; versions below `0.3.14` are affected.\n- unknown","needs_analyst":false,"not_affected_if":["version-0.3.14-or-later"],"who_is_affected":"Deployments of Open WebUI older than `0.3.14` where users view model output, including content produced by other users or shared prompts. Installations limited to a single trusted user with no shared content have a much smaller exposure. The sources do not say whether any specific configuration is required.","user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.00056,"input_tokens":3303,"output_tokens":460,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2024':10A,18A '-6706':11A,19A '-79':30B '5363':16A '5jp3':14A 'ai':27B 'ai-tool':26B 'anoth':72B 'arbitrari':96C 'attack':63B,83C 'browser':81B 'coax':49B 'coerc':90C 'context':100C 'craft':52B,85C 'cross':5A 'cross-sit':4A 'cve':9A,17A 'cwe':29B 'end':43B 'execut':58B,95C 'front':42B,70B 'get':65B 'ghsa':13A 'ghsa-5jp3-wp5v':12A 'host':37B 'javascript':56B,97C 'languag':45B,92C 'malici':67B,87C 'model':46B,93C 'open':1A,21A,24A,32B,38B 'open-webui':20A,31B 'openwebui':23A 'output':55B 'page':61B,104C 'prompt':53B,68B,88C 'python':34B 'run':75B 'script':7A,76B 'self':36B 'self-host':35B 'session':82B 'site':6A 'store':3A 'tool':28B 'user':73B,79B 'vulner':8A 'web':41B,103C 'webui':2A,22A,25A,33B,39B 'wp5v':15A","nicknames":[],"mitigations":[],"who_affected":"Deployments of Open WebUI older than `0.3.14` where users view model output, including content produced by other users or shared prompts. Installations limited to a single trusted user with no shared content have a much smaller exposure. The sources do not say whether any specific configuration is required.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2024-08-07T23:15:41+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-5jp3-wp5v-5363","url":"https://github.com/advisories/GHSA-5jp3-wp5v-5363","severity":"medium","published_at":"2024-08-08T00:31:44+00:00","modified_at":"2026-10-26T15:10:15+00:00","first_seen_at":"2026-10-26T15:12:52+00:00","fetched_at":"2026-10-26T15:12:52+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-6706","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6706","severity":null,"published_at":"2024-08-07T23:15:41+00:00","modified_at":"2026-06-17T08:18:31+00:00","first_seen_at":"2026-10-26T16:02:26+00:00","fetched_at":"2026-10-26T16:02:26+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}