This is a DNS rebinding vulnerability in Open WebUI's URL retrieval module that allows an attacker to bypass hostname validation and reach cloud metadata endpoints. Here's what matters:
The vulnerability exploits a temporal gap between validation and execution. The code validates a hostname in Python using a trusted resolver (returning 8.8.8.8 during the check), passes that validation, then hands the hostname to Playwright — which resolves it independently moments later. At that point, the attacker's controlled nameserver returns 169.254.169.254 (AWS metadata) or an internal IP. The validation did its job correctly; the security property it was meant to enforce never existed.
This isn't a developer failure — it's an architectural one. The validation logic and the browser's request execution are separated by DNS resolution, which is inherently time-varying. The developers understood the risk well enough to write validation; the trap was assuming that check and use happen in the same resolution context.
The severity is critical because Open WebUI often runs on developer workstations or infrastructure with active cloud credentials. Reaching the AWS metadata endpoint doesn't just mean accessing internal services — it means credential theft that grants full cloud infrastructure access.
What to do now:
-
Upgrade to 0.11.1 immediately — this presumably pins the DNS resolution in Python before Playwright executes the request, breaking the independent resolution chain.
-
Audit any other code paths that validate a hostname server-side and then pass it to a headless browser, HTTP client, or shell command. The pattern of validation-then-execution is the vulnerability signature.
-
Treat retrieval and ingestion modules as hostile input surfaces — they accumulate complexity over time and sit downstream of where security attention concentrates.
-
Isolate cloud credentials from machines running local AI tooling. The blast radius of a successful rebinding attack is bounded by what's reachable at that IP. If metadata credentials aren't present locally, exploitation yields far less.
The deeper problem: headless browser libraries expose DNS resolution as an implementation detail rather than requiring pre-resolved destinations. This makes the secure path harder than the vulnerable one. Expect this class to recur in other AI frameworks until tooling-level changes force resolution to be explicit and atomic.