VYPR
High severityNVD Advisory· Published Nov 8, 2025· Updated Nov 13, 2025

Open WebUI Affected by an External Model Server (Direct Connections) Code Injection via SSE Events

CVE-2025-64496

Description

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Versions 0.6.224 and prior contain a code injection vulnerability in the Direct Connections feature that allows malicious external model servers to execute arbitrary JavaScript in victim browsers via Server-Sent Event (SSE) execute events. This leads to authentication token theft, complete account takeover, and when chained with the Functions API, enables remote code execution on the backend server. The attack requires the victim to enable Direct Connections (disabled by default) and add the attacker's malicious model URL, achievable through social engineering of the admin and subsequent users. This issue is fixed in version 0.6.35.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
open-webuinpm
< 0.6.350.6.35
open-webuiPyPI
< 0.6.350.6.35

Affected products

1

Patches

1
8af6a4cf21b7

refac: direct connections

https://github.com/open-webui/open-webuiTimothy Jaeryang BaekOct 19, 2025via ghsa
1 file changed · +3 1
  • backend/open_webui/utils/middleware.py+3 1 modified
    @@ -2349,7 +2349,9 @@ async def flush_pending_delta_data(threshold: int = 0):
                                 )
     
                                 if data:
    -                                if "event" in data:
    +                                if "event" in data and not getattr(
    +                                    request.state, "direct", False
    +                                ):
                                         await event_emitter(data.get("event", {}))
     
                                     if "selected_model_id" in data:
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.