CVE-2026-87996
SSRF via DNS rebinding in SafePlaywrightURLLoader, exposing internal services.
- CVSS 7.7
- 367
- Input Validation and Sanitization
- Remote
Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. From 0.9.6 until 0.11.1, SafePlaywrightURLLoader in backend/open_webui/retrieval/web/utils.py validated a user-controlled hostname in Python and then let the Playwright browser resolve it again in the sync and async request interceptors. An authenticated user controlling authoritative DNS could return a public address to validation and an internal address to the browser, exposing responses from internal services or cloud metadata through web search or URL ingestion. This issue is fixed in version 0.11.1.
- CWE
- 367
- CVSS base score
- 7.7
- Published
- 2026-09-09
- OWASP
- A10 Server-Side Request Forgery
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade Open WebUI to version 0.11.1 or later.
Vulnerable code sample
import re
import socket
from urllib.parse import urlparse
from playwright.sync_api import sync_playwright
PRIVATE_IP_RE = re.compile(
r"^(10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.)"
)
class SafePlaywrightURLLoader:
def __init__(self):
self.playwright = sync_playwright().start()
self.browser = self.playwright.chromium.launch()
def _is_private(self, hostname: str) -> bool:
try:
ip = socket.gethostbyname(hostname)
return bool(PRIVATE_IP_RE.match(ip))
except Exception:
return False
# VULNERABLE: validates hostname but later lets Playwright resolve it again
def load(self, url: str) -> str:
parsed = urlparse(url)
hostname = parsed.hostname or ""
if self._is_private(hostname):
raise ValueError("Private host not allowed")
page = self.browser.new_page()
page.goto(url) # DNS resolved again here, enabling rebinding
content = page.content()
page.close()
return contentPatched code sample
import re
import socket
from urllib.parse import urlparse, urlunparse
from playwright.sync_api import sync_playwright
PRIVATE_IP_RE = re.compile(
r"^(10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.)"
)
class SafePlaywrightURLLoader:
def __init__(self):
self.playwright = sync_playwright().start()
self.browser = self.playwright.chromium.launch()
def _is_private(self, hostname: str) -> bool:
try:
ip = socket.gethostbyname(hostname)
return bool(PRIVATE_IP_RE.match(ip))
except Exception:
return False
# FIX: resolve hostname once and use the same IP for the request
def load(self, url: str) -> str:
parsed = urlparse(url)
hostname = parsed.hostname or ""
if self._is_private(hostname):
raise ValueError("Private host not allowed")
ip = socket.gethostbyname(hostname)
safe_netloc = f"{ip}:{parsed.port}" if parsed.port else ip
safe_url = urlunparse(parsed._replace(netloc=safe_netloc))
page = self.browser.new_page()
page.route("**/*", lambda route: route.continue_(
url=safe_url,
headers={"host": hostname}
))
page.goto(safe_url)
content = page.content()
page.close()
return contentPayload
__VAITP_MODEL_REFUSED__
Cite this entry
@misc{vaitp:cve202687996,
title = {{SSRF via DNS rebinding in SafePlaywrightURLLoader, exposing internal services.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-87996},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-87996/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
