Open WebUI SSRF protection and outbound request controls

Open WebUI's web loader and tools make requests from the server, so a user or model can point them at internal addresses unless you filter destinations and restrict egress. This page covers the controls, the configuration choices and what to confirm before you rely on them.

On this page

Why Open WebUI SSRF protection matters for the web loader

Server-side request forgery is the risk when the Open WebUI server, not the user's browser, makes a request to a URL a user or model supplied. The web loader fetches pages to add their content to a chat or knowledge base, and tools may call HTTP endpoints on the same server. If a crafted URL points at an address the server can reach but a user cannot, such as a database admin page on a private subnet, an internal API without authentication, or the link-local address that cloud platforms use for instance metadata, the request runs with the server's network position and credentials. The response may then be returned to the user, summarized by a model, or stored in a knowledge base. This matters most when Open WebUI runs inside a private network or a cloud account with an instance role, because the server can usually reach far more than its users should.

Teams need these controls when several people can add URLs or enable tools, when the deployment sits on a network that holds internal services, or when it runs in a cloud account whose metadata service is reachable from the container. A single-user lab on a laptop carries little of this risk. A shared company instance that fetches web pages on behalf of employees, or that lets a model call an OpenAPI tool server, usually does. Prompt injection makes the problem harder, because a page the loader fetches can contain instructions that steer the model toward an internal URL, so the server must enforce the boundary regardless of what the model decides.

Protection works in two layers, and neither is enough alone. The first is the application layer, where Open WebUI settings such as WEB_FETCH_FILTER_LIST and related options decide which destinations the loader may reach. The second is the container or network layer, where egress rules limit what the process can connect to even if the application check is bypassed or misconfigured. Before you change anything, confirm the exact behavior of each setting against the Open WebUI documentation for the version you run, including how it handles hostnames that resolve to private addresses, redirects and IPv6. Then test the result from inside the running container, not only from your workstation.

Which outbound control fits each deployment

This table compares four layers that can limit where Open WebUI and its tools send requests: the application filter, container egress rules, host firewall rules and an outbound proxy with an allow list. Read each row for what the layer stops, what it cannot see and who keeps it working. The main takeaway is that no single layer covers every path, so most deployments combine an application filter with a network control that the application cannot change.

ControlWhat it blocksWhat it cannot seeBest fit
Application filter (WEB_FETCH_FILTER_LIST and any private address option)URLs the web loader fetches that match the configured rules, if the release supports the settingRequests made by tool code, redirects not re-checked, and traffic from other features that bypass the loaderQuick first control on a single instance; confirm setting names and formats for your release first
Container egress rules (Docker or Kubernetes network policy)Connections from the Open WebUI container or pod to address ranges or ports you denyDestination hostnames unless the policy resolves them, and anything your rules allow by IP rangeBlocking private ranges and cloud metadata addresses for the whole container, including tool code
Host firewall rulesOutbound traffic from the host or its bridge network to chosen destinations and portsPer-application intent, DNS answers changing over time, and container traffic routed in ways your rules do not matchTeams that already manage host firewall policy centrally and want a control outside the container runtime
Outbound proxy with an allow listAny request routed through the proxy that is not on the approved host listTraffic that skips the proxy because the process ignores proxy variables, so the container must be forced through itEnvironments where only named external services should be reachable and proxy logs are needed for review
Who maintains itOpen WebUI project for the filter; your platform or network team for the othersChanges to defaults between releases are the most common surpriseAssign an owner for each layer and review rules after every upgrade
Verification evidenceTest requests to private ranges, metadata addresses and redirect chains from inside the containerResults from outside the container or from an admin browser sessionKeep the test cases and results with the change record

How a web fetch request crosses the trust boundaries

A request starts with a user prompt or a model tool call inside the Open WebUI container, where the web loader or tool builds the outbound fetch. Before any socket opens, the application-level filter decides whether the target is allowed, so the check runs first in the path. The request then leaves through the container and host egress policy, which is the last control that can stop traffic to private ranges or the cloud metadata address. Check that each boundary has its own rule and that the rules agree.

Outbound web fetch path with the control at each trust boundary.

How the web loader and tools reach the network

Every outbound fetch from Open WebUI leaves from the server process, not from the user's browser. That means the server's network position decides what is reachable: the host's routes, its DNS resolution, the cloud account it runs in and any internal subnets it can see. A user who cannot reach an internal admin console may still cause the server to request it on their behalf, so the controls below protect the server's view of the network, not the user's.

Three paths deserve review first. The web loader and web search features fetch pages so the model can read them for retrieval, and a user can usually supply the URL or the search results can point anywhere. OpenAPI tool servers are called by the server when a model invokes a tool, so the URL configured for each server defines a reachable destination. Python tools and functions run server-side code, and any requests or httpx call inside them reaches the network with the server's identity and no browser-side restrictions. Each path has a different owner and a different approval point, so review them separately rather than as one feature.

Before you choose any control, inventory which of these features are enabled in your instance, who can add or edit tool servers and functions, and which model or search providers are configured. Features you do not use can be disabled, which removes the path entirely and is simpler to verify than filtering it. Record the result in a short table with the feature, the setting that enables it, the role that can change it and the destinations it needs. Confirm the exact setting names and defaults for your release in the Open WebUI documentation before you rely on them, since these controls change between versions.

Which destinations to block and why

The web loader and tools make server-side requests, so every address they can reach is reachable by a user who can supply a URL. The cards below cover the destination classes that matter most for a self-hosted deployment, and each one asks you to confirm how your own network is addressed before you write rules.

Loopback and host-local services

Requests to 127.0.0.1, localhost or other loopback addresses reach services running on the same host or in the same network namespace as Open WebUI. These often include admin consoles, metrics endpoints and local databases that assume only local callers. Confirm which ports listen on the host and inside the container, and whether any of them accept requests without authentication. Test a loopback target from the web loader before you rely on any block.

Private IPv4 and IPv6 ranges

Private address space carries internal applications, file stores and identity systems that are not meant for user-supplied URLs. Your network may use RFC 1918 ranges, carrier-grade NAT, or IPv6 unique local addresses, and some of them may be routed through a VPN. Confirm the subnets your data center, VPN clients and Kubernetes pods and services actually use, because a block list copied from a template often misses a range your organization runs.

Link-local and cloud metadata addresses

Link-local addresses, including the IPv4 range 169.254.0.0/16, host instance metadata services on most cloud platforms. A request that reaches one can return instance credentials and identity tokens that grant access beyond Open WebUI. Confirm which metadata endpoint your provider uses, whether it requires a session token, and whether hop limits or IMDSv2-style controls are enabled on the instance.

Container gateway and sibling containers

On a Docker bridge network, the gateway address reaches the host, and other containers on the same bridge are reachable by IP or service name. A database, a vector store, Redis or a tool server beside Open WebUI can be reached this way even though it is not published to users. Confirm the bridge subnet with docker network inspect, list every container attached to it, and decide which of them Open WebUI must never call.

Internal admin APIs and databases

Admin APIs, orchestration consoles, message brokers and database ports often sit on internal addresses with weaker authentication than public services. They are a common target because they accept requests from any internal client. List the internal services Open WebUI does not need to call, including PostgreSQL, Redis and any identity provider admin endpoint, and confirm that network policy or firewall rules block them independently of the application setting.

Redirects and DNS tricks

A public hostname can resolve to a private address, and an allowed URL can answer with a redirect to a blocked one. A check that validates only the first URL, or only the resolved address at one moment, can be bypassed this way through redirects or DNS rebinding. Confirm that Open WebUI revalidates the destination after each redirect and resolves names at request time, and test both a redirect chain and a hostname that points to 127.0.0.1.

Setting up the filter and egress rules step by step

This sequence moves Open WebUI from default outbound access to a documented allow list enforced in two places: the application filter and the container or host network. Each step ends with a check you can record, so the result can be reviewed and repeated after changes.

  1. Inventory loader, search and tool features

    The platform owner, with an admin account, lists every web loader, web search, tool, function and OpenAPI tool server setting that is enabled. For each one, record where the setting lives in the admin interface and which destinations it must reach, such as a search provider API, document sites, internal wikis or a tool server host. Confirm setting names against the documentation for the version you run. Done when every enabled feature has one row with a named owner and a listed destination.

  2. Record the allow list

    Convert the inventory into a written allow list of hostnames and ports, with one owner and one business reason per entry. Keep private, loopback, link-local and cloud metadata addresses off the list unless a documented need exists and the owner accepts the exposure. Store the file under change control. Done when a reviewer can trace every entry back to a feature from the previous step, and no entry is an unexplained address range.

  3. Set the application filter

    Apply the filter described in the current Open WebUI documentation for WEB_FETCH_FILTER_LIST, using the allow list from the previous step. Before writing the value, confirm in the documentation for your version which formats it accepts, such as hostnames, wildcards or address ranges. After restarting, check the value that loaded with a command such as docker exec followed by the container name and env, piped to a search for WEB_FETCH. Done when the loaded value matches the approved file.

  4. Apply container or host egress rules

    The network team writes egress rules on the host firewall, the container network or the Kubernetes network policy layer. The rules deny traffic to private ranges, loopback, link-local addresses and the cloud metadata address, then permit only the approved destinations and ports. The application filter runs inside the Open WebUI process, so the network rules are the independent second layer. Confirm DNS resolution behavior with your network team. Done when the exported rule set has been reviewed and the segment default is deny for outbound traffic.

  5. Verify blocked and approved fetches

    From inside the running container, use curl or a similar client to reach a loopback address, a private address on an internal service, the cloud metadata address and one approved source. Blocked targets should time out or refuse the connection, and the approved source should respond. Then run the same targets through the web loader in the interface, so the application filter is tested too. Done when a saved test log records the expected and actual result for each target.

  6. Review logs for denied fetches

    After the tests and after a normal working day, search the Open WebUI logs for denied fetch attempts. Confirm the log level and the exact message format for your version first, so the search is accurate. Each denial from the test run should appear with the requested target. Denials from ordinary users point to a missing allow list entry or a user trying to reach a destination outside policy. Done when every test denial is found in the logs and each unexpected denial has a recorded decision.

  7. Retest after upgrades and network changes

    Rerun the verification tests and the log review after each Open WebUI upgrade, and after any change to the container network, DNS resolvers, cloud routes, proxies or firewall policy. Read the release notes for the version you move to, looking for changes to the filter or fetch behavior. Confirm the environment value still loads and the network rules still exist. Done when the new test log matches the approved baseline or each difference has a documented reason.

Where to enforce egress rules by deployment type

On a single host, the container's outbound traffic usually passes through the Docker bridge network and then the host's firewall. Docker manages its own iptables rules for published ports and bridge forwarding, so a rule written only in a generic firewall front end can be bypassed or reordered. Egress control is most reliable when the container sits on a dedicated network and the policy is applied to traffic leaving that network, not to the host as a whole.

  • Dedicated bridge network: Attach Open WebUI to a user-defined network that carries no other workloads, so a single rule set covers only this service.
  • Host firewall with the DOCKER-USER chain: Docker documents this chain as the place for administrator rules that run before Docker's own forwarding rules. Confirm the behavior on your Docker version before relying on it.
  • Internal-only network for dependencies: If the model server or vector store runs on the same host, place it on a separate network so the web loader can reach only what it needs.
  • Proxy as the single exit: Route web fetches through a controlled proxy on the host and block direct outbound connections from the container network.
  • Compose file review: Check that no service is set to host networking, since that removes the isolation the bridge rules depend on.

Confirm your Docker Engine version's documented firewall behavior and test with a live request to a private address from inside the container. Check the rule counters after the test.

Operational risks that remain after the controls are in place

The controls in this topic are configuration, and configuration drifts. The first risk is behavior changes across releases. Open WebUI publishes releases on its GitHub releases page, and v0.12.3 was published on October 16, 2026. Before any upgrade, read the release notes for changes to the web loader, tool calling, outbound request handling and environment variables such as WEB_FETCH_FILTER_LIST, then rerun your blocked-address tests against the new image. Assign the platform owner to own this check, and tie it to every image change, not to a calendar date your team picks in isolation.

The second risk is an allow list that only grows. Teams add a hostname to unblock a single search or tool, and nobody removes it later. Assign ownership of the allow list to a named security reviewer who approves every addition with a business reason, an expiry date and the destination's address range. Review the full list at a cadence your security team sets and record the result. The third risk is an administrator who can register a tool, function or external tool server that reaches a blocked destination through a path the loader never checks. Confirm which roles can add these, and restrict that permission to trusted administrators, as covered in the tools governance topic.

Two risks sit in the infrastructure around the application. Denied requests often leave no useful trace, so confirm that your logs record blocked fetches, the calling user or tool, and the destination, and that the logs reach the team that reviews them. Finally, a network change can move a service you depend on into a range your rules block, such as a new internal load balancer or a cloud service endpoint that resolves to a private address. The network team owns address plan changes, and the platform owner owns a retest after each one. Ask your cloud or network provider which ranges your dependencies use and how those ranges may change.

What to confirm in your environment before relying on these controls

Filter settings, redirects, IPv6, tool paths and egress rules each decide whether a private-address block holds in practice. The cards below are checks to run against your own release and network, not statements about how the software behaves.

Exact filter setting names and formats

Confirm the precise name, accepted value format and separator of the web fetch filter setting in the release you run, using its configuration reference rather than a blog post or older notes. Test each entry type you plan to use, including single addresses, CIDR ranges and hostnames, and record what the running instance actually accepts. A misspelled or wrongly formatted key can fail silently, leaving the control off while the admin believes it is on.

Open WebUI features

Redirects and DNS resolution

Check whether the filter is applied to the first request only or also to each redirect target, and whether it validates the address the resolver returns or only the hostname as written. A public hostname that resolves to a private address, or that redirects to one, is the usual bypass. Run both cases against a controlled test host in your environment and confirm the request is refused in each.

IPv6 handling

Verify how the filter treats IPv6 literals, IPv4-mapped addresses, link-local ranges and unique local addresses. If your network issues IPv6 routes, a control written only for IPv4 ranges leaves a parallel path open. Ask for the exact behavior in writing and test it with IPv6 targets on the same host, since an allow list may cover one address family and not the other.

Tool servers and Python tools

Determine whether OpenAPI tool servers, MCP servers and Python tools send their outbound calls through the same filtered path as the web loader. Tools often use their own HTTP clients, so a web loader control may not cover them. Make a tool call to a private address from each tool type and confirm whether it is blocked, then document any path that is not.

Metadata endpoint matching in egress policy

Confirm that your platform's egress rules can match the link-local metadata address and any cloud-specific metadata hostnames, and that the rule applies to the Open WebUI container, not only the node. Some network policies match by CIDR and cannot express hostname-based metadata access, and some runtimes route metadata traffic outside the rule you wrote. Test from inside the running container, since host-level checks can give a false pass.

Coverage of your specific allow list

Ask whether DeployOpen's testing covers the exact allow list, hostnames and ranges you plan to permit, not only the default configuration. An allow list that exempts an internal search service or a proxy can reopen a range the block was meant to close. Agree in the written scope which entries will be tested, how they will be retested after changes, and who approves each new entry.

Questions buyers ask about SSRF hardening for Open WebUI

How much effort does SSRF hardening for Open WebUI take?

The effort depends on how many features reach outbound, how many destinations you need to allow, how complex your network is and how deep the testing goes. A deployment with the web loader and one or two tools enabled, a flat network and a short allow list is a small, bounded job. Each additional enabled feature adds a set of requests to classify, each allowed destination needs a reason and an owner, and segmented networks with several egress paths add rules and verification steps. Testing depth is the largest variable: checking only the configured filters is quicker than probing redirects, DNS rebinding, IPv6 and cloud metadata paths from inside the container. Ask any provider for the feature inventory and network diagram before accepting a number.

Can our own team harden outbound requests without a partner?

Yes, if the team has someone comfortable with Linux networking, container runtimes, firewall or network policy tooling, DNS and basic web security testing. The work touches the Open WebUI settings that control the web loader and tools, the host or cluster egress rules, and the cloud metadata protections of your provider. A platform engineer can apply the configuration, but verifying it requires a tester who will try redirects, alternate address encodings and DNS tricks against the running system. Many teams do the build internally and bring in an outside tester for the independent check, which keeps the ownership clear.

How long does the SSRF hardening work take?

Duration follows the same drivers as effort: the number of enabled outbound features, the number of destinations on the allow list, the complexity of your network and approval steps, and the depth of testing. Internal change control, firewall ticket cycles and access to a non-production environment often add more elapsed time than the configuration itself. Agree on a timeline only after the scope is written, and ask the provider to show which steps depend on your teams, such as network changes, cloud IAM updates or access to test accounts. DeployOpen does not publish durations; the written scope sets the timeline.

What must we provide before SSRF hardening starts?

Expect to provide an architecture diagram showing where Open WebUI, its model servers, tool servers, search services and any proxies sit. Provide a feature inventory listing which web loader, tools, functions, integrations and MCP connections are enabled, and who uses them. Network ranges for internal subnets, VPCs and on-premises segments are needed to write private address rules, along with the destinations each feature must reach. Cloud metadata details matter too: which provider you run on, whether instance metadata version 2 or equivalent controls are in use, and which roles the container can assume. Finally, you need access to a non-production test environment that mirrors production egress, with accounts that can exercise the features under test.

What should a quote for SSRF hardening include?

A quote should follow a written scope that names the in-scope features, the destinations and address ranges to allow and block, and the environments covered. It should list the test cases, such as private address targets, cloud metadata endpoints, redirect chains, DNS resolution to internal names and attempts to bypass WEB_FETCH_FILTER_LIST entries, along with the tools used to run them. Ask for the deliverables in writing: configuration changes, egress rule definitions, a findings report with severity and fix guidance, and a retest after fixes are applied. Also confirm who performs changes in production, what access is needed, and what ongoing support, if any, is included or offered as a separate retainer.

Does DeployOpen's SSRF work count as an audit or certification?

No. DeployOpen hardens the configuration, tests the controls and documents the results, and it prepares evidence that your compliance team can use. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments, and they decide whether your controls meet a given framework. Ask your assessor early which evidence they expect for outbound request controls, such as configuration exports, egress rule records, test results and change history, so the hardening work produces material they can review.

How DeployOpen scopes and tests outbound request controls

DeployOpen treats outbound request controls for Open WebUI as a defined piece of work: first agreeing which web loader and tool paths must reach which destinations, then building the filters and network rules, then testing that blocked targets stay blocked. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Inventory every feature that fetches URLs, including the web loader, retrieval sources, tools and any OpenAPI tool servers
  • Agree which internal, private and cloud metadata addresses must be blocked and which destinations are approved
  • Confirm the deployment model, container runtime and network zones before choosing filter or egress controls
  • Write the scope, deliverables and timeline in writing, with the ongoing retainer option described separately

How we build

  • Configure WEB_FETCH_FILTER_LIST and related settings to match the approved destination policy, documented per setting
  • Apply container egress rules at the network layer so blocked traffic fails even if an application setting is changed
  • Block cloud instance metadata endpoints at the host or network level and verify the rule on each node type
  • Record the configuration as code or documented change records so administrators can review every rule later

How we hand over

  • Deliver a test report showing each attempted internal, metadata and redirect-based request and its result
  • Provide a runbook for adding an approved destination, including who approves it and how it is logged
  • Document the rule set, its owner and the verification steps to repeat after each Open WebUI upgrade
  • Walk your platform and security teams through the controls and the evidence they produce

How we support

  • Retest outbound controls after Open WebUI upgrades, since web loader and tool behavior can change between releases
  • Review new tools and connectors for outbound calls before they are enabled for users
  • Offer continuous testing and upgrade support as a retainer, scoped in writing
  • Confirm with your team which change windows and approval steps apply to firewall or egress rule updates

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.