CVE-2026-54020: Open WebUI: DNS-rebind SSRF bypasses URL check

GHSA-h6x2-583h-x99r MEDIUM
Published August 4, 2026
CISO Take

Open WebUI validated user-submitted URLs by resolving the hostname once, checking it wasn't a private or internal address, then let the HTTP client resolve that same hostname again at connect time — a time-of-check/time-of-use gap that an attacker controlling authoritative DNS for their own domain can exploit by answering with a public IP during the check and an internal one at connect. Any authenticated account, no admin rights or non-default config required, can point RAG document ingestion, a chat image URL, image editing, or an OAuth profile-picture fetch at cloud instance metadata (169.254.169.254) or internal admin services, and on most of those paths the internal response — including, on the OAuth flow, a forwarded OAuth Bearer token — is handed straight back to the attacker, which on a cloud host with IMDSv1 reachable is enough to steal instance IAM credentials. The blast radius is real (open-webui has 4 tracked downstream dependents and 150 other CVEs in the same package), but urgency is tempered by CVSS 6.3 (medium), a high attack-complexity requirement to win the DNS-rebind race, an EPSS score of 0.2% (88th percentile relative to other CVEs, still a low absolute figure), absence from CISA KEV, no public exploit or Nuclei template, and a CISA SSVC decision of TRACK. Patch to Open WebUI v0.11.0, which moves validation to the connection layer so the address that was checked is the one actually connected to; until then, restrict which users can reach retrieval/image/OAuth-picture ingestion and firewall the host from cloud metadata endpoints and internal admin APIs as defense in depth.

Sources: NVD GitHub Advisory EPSS CISA KEV ATLAS github.com/open-webui

What is the risk?

Medium risk overall. Impact is high if realized — SSRF into cloud metadata or internal admin APIs, with credential theft possible via IMDSv1 and OAuth token forwarding — but exploitability is constrained by AC:H (the attacker must win a DNS-rebind race window they influence but don't fully control) and by needing authoritative DNS control over a hostname they submit. No public exploit code, no Nuclei template, not in CISA KEV, and CISA's own SSVC decision is TRACK (lowest urgency tier). EPSS absolute probability is very low (0.213%) despite sitting in the 88th percentile relative to other CVEs. This is a real vulnerability class (TOCTOU SSRF) worth patching promptly but not an active-exploitation emergency.

How does the attack unfold?

Malicious URL submission
Attacker with a basic account submits a RAG ingest URL, chat image_url, or OAuth profile-picture URL pointing to a hostname they control authoritative DNS for.
AML.T0049
TOCTOU DNS rebind
Open WebUI resolves the hostname and passes the check against a public IP served with TTL=0; the HTTP client re-resolves the same hostname microseconds later and the attacker's DNS answers with an internal or metadata address instead.
Internal SSRF connection
The underlying requests/aiohttp client connects to the rebound internal address (e.g., 169.254.169.254 cloud metadata or an internal admin API) instead of the validated public one.
Response and credential exfiltration
The internal response is surfaced back to the attacker as document content, a vision-model image description, or an embedded profile picture; on the OAuth path the forwarded Bearer token also reaches the internal target, enabling IMDS credential theft.
AML.T0077

What systems are affected?

Package Ecosystem Vulnerable Range Patched
Open WebUI pip <= 0.10.2 0.11.0
153.3K 3 dependents Pushed 6d ago 83% patched ~5d to patch Full package profile →

Do you use Open WebUI? You're affected.

How severe is it?

CVSS 3.1
6.3 / 10
EPSS
0.3%
chance of exploitation in 30 days
Higher than 15% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Advanced

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC High
PR Low
UI None
S Changed
C High
I None
A None

What should I do?

1 step
  1. 1) Upgrade to Open WebUI v0.11.0 — no configuration change required, fix moves hostname validation to the connection layer (requests transport adapter + aiohttp resolver enforcing global-IP checks on the actually-connected address). 2) Until patched, restrict or disable URL-based RAG ingestion, chat image URLs, and image editing for untrusted users; if OAuth is enabled, disable OAUTH_UPDATE_PICTURE_ON_LOGIN (off by default — verify it stays off) and audit OAUTH_PICTURE_CLAIM sources. 3) Network-level defense in depth: block outbound requests from the Open WebUI host to 169.254.169.254 and other cloud metadata endpoints at the firewall/egress-proxy layer regardless of application-level fixes, and prefer IMDSv2 (session-token-bound) over IMDSv1 on cloud instances. 4) Detection: monitor egress logs from the Open WebUI host for connections to RFC1918/loopback/link-local ranges or metadata IPs following inbound URL-ingest, image-fetch, or OAuth-login requests; flag DNS answers with TTL=0 or rapidly alternating A records for domains submitted via those features.

What does CISA's SSVC say?

Decision Track
Exploitation none
Automatable No
Technical Impact partial

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15 - Accuracy, robustness and cybersecurity
ISO 42001
A.6.2 - AI system life cycle — security
NIST AI RMF
MEASURE 2.7 - AI system security and resilience are evaluated and documented
OWASP LLM Top 10
LLM07 - Insecure Plugin Design

Frequently Asked Questions

What is CVE-2026-54020?

Open WebUI validated user-submitted URLs by resolving the hostname once, checking it wasn't a private or internal address, then let the HTTP client resolve that same hostname again at connect time — a time-of-check/time-of-use gap that an attacker controlling authoritative DNS for their own domain can exploit by answering with a public IP during the check and an internal one at connect. Any authenticated account, no admin rights or non-default config required, can point RAG document ingestion, a chat image URL, image editing, or an OAuth profile-picture fetch at cloud instance metadata (169.254.169.254) or internal admin services, and on most of those paths the internal response — including, on the OAuth flow, a forwarded OAuth Bearer token — is handed straight back to the attacker, which on a cloud host with IMDSv1 reachable is enough to steal instance IAM credentials. The blast radius is real (open-webui has 4 tracked downstream dependents and 150 other CVEs in the same package), but urgency is tempered by CVSS 6.3 (medium), a high attack-complexity requirement to win the DNS-rebind race, an EPSS score of 0.2% (88th percentile relative to other CVEs, still a low absolute figure), absence from CISA KEV, no public exploit or Nuclei template, and a CISA SSVC decision of TRACK. Patch to Open WebUI v0.11.0, which moves validation to the connection layer so the address that was checked is the one actually connected to; until then, restrict which users can reach retrieval/image/OAuth-picture ingestion and firewall the host from cloud metadata endpoints and internal admin APIs as defense in depth.

Is CVE-2026-54020 actively exploited?

No confirmed active exploitation of CVE-2026-54020 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-54020?

1) Upgrade to Open WebUI v0.11.0 — no configuration change required, fix moves hostname validation to the connection layer (requests transport adapter + aiohttp resolver enforcing global-IP checks on the actually-connected address). 2) Until patched, restrict or disable URL-based RAG ingestion, chat image URLs, and image editing for untrusted users; if OAuth is enabled, disable `OAUTH_UPDATE_PICTURE_ON_LOGIN` (off by default — verify it stays off) and audit `OAUTH_PICTURE_CLAIM` sources. 3) Network-level defense in depth: block outbound requests from the Open WebUI host to 169.254.169.254 and other cloud metadata endpoints at the firewall/egress-proxy layer regardless of application-level fixes, and prefer IMDSv2 (session-token-bound) over IMDSv1 on cloud instances. 4) Detection: monitor egress logs from the Open WebUI host for connections to RFC1918/loopback/link-local ranges or metadata IPs following inbound URL-ingest, image-fetch, or OAuth-login requests; flag DNS answers with TTL=0 or rapidly alternating A records for domains submitted via those features.

What systems are affected by CVE-2026-54020?

This vulnerability affects the following AI/ML architecture patterns: RAG pipelines, chat UI / vision model integration, OAuth/SSO integration, model serving (self-hosted LLM front-end).

What is the CVSS score for CVE-2026-54020?

CVE-2026-54020 has a CVSS v3.1 base score of 6.3 (MEDIUM). The EPSS exploitation probability is 0.25%.

What is the AI security impact?

Affected AI Architectures

RAG pipelineschat UI / vision model integrationOAuth/SSO integrationmodel serving (self-hosted LLM front-end)

MITRE ATLAS Techniques

AML.T0025 Exfiltration via Cyber Means
AML.T0049 Exploit Public-Facing Application
AML.T0077 LLM Response Rendering

Compliance Controls Affected

EU AI Act: Article 15
ISO 42001: A.6.2
NIST AI RMF: MEASURE 2.7
OWASP LLM Top 10: LLM07

What are the technical details?

Original Advisory

## Summary Open WebUI vetted user-supplied URLs by resolving the hostname once and rejecting private, loopback and link-local addresses, then let the HTTP client resolve that hostname again at connect time. An attacker who controls the authoritative DNS for a hostname they submit can answer with a public address during the check and an internal one at connect, so the fetch reaches an address the check was meant to block. Every user-reachable fetch gated by that check was affected, and most of them hand the internal response back to the attacker. ## Preconditions - An account on the instance. No admin rights and no non-default configuration. - Control of the authoritative DNS for a hostname the attacker submits, serving a TTL of 0 and alternating answers. - One of the affected entry points: URL ingest for retrieval, an `image_url` in a chat completion, image editing, or the OAuth profile-picture fetch. - The OAuth path additionally needs OAuth login configured and a picture claim (`OAUTH_PICTURE_CLAIM`, default `picture`) the user can influence, which is the case on self-service OIDC providers and providers with a user-editable avatar URL. On an existing account it also needs `OAUTH_UPDATE_PICTURE_ON_LOGIN`, which is off by default. Deployments without OAuth are not affected on that path; the other paths need no configuration at all. ## Impact The server can be made to issue requests to addresses only it can reach: cloud instance metadata such as 169.254.169.254, loopback-bound admin APIs, and internal network services. The response comes back to the attacker on most paths, as document content on the retrieval path, described by the vision model on the chat image path, and base64-encoded into the profile picture on the OAuth path; the image-edit path is blind. On the OAuth path the server also forwards the OAuth access token as a Bearer header to the fetched URL, so a rebind hands that token to the internal target. On a cloud host with IMDSv1 reachable this is enough to take instance IAM credentials. Exploitation depends on winning the gap between the two resolutions, which the attacker influences but does not fully control. Admin-configured image-generation backends and the shared session pool are not affected and deliberately keep the default client, since an administrator may legitimately point those at an internal host. ## Fix Fixed in v0.11.0 (#24759, #25775, #25960, #26699). The check now happens at the connection layer instead of ahead of it: a `requests` transport adapter resolves the hostname once and connects to that same validated address, and an aiohttp resolver applies the same global-IP check, exposed as a one-off session used by every fetch behind the URL check. Upgrading to v0.11.0 resolves this with no configuration change. ## Root cause Affected components: - retrieval web loader (`SafeWebBaseLoader`) - retrieval content probe (`get_content_from_url`) - chat image fetch (`get_image_base64_from_url`) - image edit fetch (`load_url_image`) - OAuth profile-picture fetch (`_process_picture_url`) The URL check resolved the hostname and inspected the resulting IP, but nothing tied that decision to the connection that followed: the HTTP client resolved the name again on its own, and the second answer was never inspected. The check was therefore an opinion about a past lookup rather than a constraint on the actual connection, which is what a rebinding DNS server defeats. The first connection-layer guard covered only the retrieval loader, leaving the sibling probe, image and OAuth fetches on default clients until each was reported in turn. ## Credits - @rezaduty — the rebinding time-of-check/time-of-use bypass and the retrieval loader path. - @nikchillz — the retrieval content-probe path. - @dhyabi2 — the chat `image_url` path, where the internal response is read back through the vision model. - @geo-chen — the image-edit path. - @bogdancherniy11-sudo — the OAuth profile-picture path, where the rebind also discloses the forwarded OAuth access token.

Exploitation Scenario

An attacker registers a low-cost domain and stands up authoritative DNS with TTL=0. They sign up for a self-service account on a target Open WebUI instance (or use an OIDC provider with a user-editable avatar URL if targeting the OAuth path). They submit a document/RAG ingest URL — or set their OAuth profile picture URL — pointing at their malicious hostname. Open WebUI resolves the hostname, sees a public IP, and passes the check; when the underlying HTTP client (requests/aiohttp) makes the actual connection microseconds later, the attacker's DNS server answers with 169.254.169.254 instead. The request lands on the cloud instance metadata service, and on the RAG path the metadata response is ingested as document content and later surfaced to the attacker via chat; on the OAuth path it's base64-encoded into the attacker's own profile picture, and the forwarded OAuth Bearer token is delivered to the metadata endpoint, potentially yielding temporary IAM credentials if IMDSv1 is reachable.

Weaknesses (CWE)

CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition: The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

  • [Implementation] The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
  • [Implementation] When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

Timeline

Published
August 4, 2026
Last Modified
August 5, 2026
First Seen
August 5, 2026

Related Vulnerabilities