Skip to content
HighVulnerability

GHSA-4v7r-f4w8-8972: Open WebUI has a full SSRF Vulnerability in the RAG Web Search Feature

Published
Record updated
View JSON
Affected
  • open-webui <= 0.8.12
Fixed in
0.9.0
  • released April 21, 2026, 23 days before disclosure

Summary

Open WebUI's `validate_url()` in `backend/open_webui/retrieval/web/utils.py` calls `validators.ipv6(ip, private=True)`, but the `validators` library does not support the `private` keyword, so the call raises a `ValidationError` that is falsy and every IPv6 address passes the filter. IPv4-mapped IPv6 addresses (`::ffff:10.0.0.1`) also bypass the IPv4 check, and several reserved IPv4 ranges such as `0.0.0.0/8` and `100.64.0.0/10` are not blocked, letting any authenticated user reach internal addresses from the server, including cloud metadata endpoints.

Mitigation

Replace the `validators` library calls with stdlib `ipaddress`, rejecting addresses where `is_private`, `is_loopback`, `is_link_local`, `is_multicast`, `is_reserved` or `is_unspecified` is true. Unwrap IPv4-mapped IPv6 addresses via `ipv4_mapped` and re-check them, and add explicit blocks for the IANA reserved ranges (for example 0.0.0.0/8, 100.64.0.0/10, 192.0.0.0/24).