Open WebUI penetration testing scope

A practical scope for testing a self-hosted Open WebUI deployment, covering identity, sharing, keys, tools, uploads, prompt injection and the stack around it.

On this page

Open WebUI penetration testing scope: what a useful test covers

A useful penetration test of Open WebUI covers the application, its identity and sharing model, the features that let users reach data or systems, and the hosting stack underneath it. A test limited to the login page or the public URL will miss most of the risk. Teams preparing for a security review or rollout should agree the scope in writing before testing starts, so the tester examines every trust boundary the deployment actually has.

Open WebUI combines several components that each widen the attack surface: single sign-on through OIDC or LDAP, role-based access control with groups and per-resource permissions, API keys, tools and MCP servers, file upload and retrieval-augmented generation, and a connection to one or more model providers. Each of these needs its own test cases. For example, a tester should try to escalate from a standard user to a higher role, read a knowledge base shared with another group, use an API key beyond its intended scope, and make a tool fetch an internal address. Confirm which of these features are enabled in your instance, since a disabled feature is out of scope for testing but still belongs in the review record.

The scope should also reach the hosting stack: the reverse proxy and how it handles forwarded identity headers, the database and any Redis or shared storage used across replicas, the vector store, and the container or host configuration. DeployOpen performs security testing of applications, APIs, cloud and infrastructure, and AI agent setups, and delivers findings with fixes and a retest. It does not issue audit reports, attestations or certifications, so ask the independent assessor you work with which evidence they will need from the test. Agree the target environment, test accounts for each role, and the rules for testing tools and outbound requests before the engagement begins.

Which Open WebUI areas belong in the test

Identity is the first boundary a tester checks. Open WebUI documents SSO through OIDC and LDAP, user and group provisioning through SCIM 2.0, and authenticator-app MFA. The tester's goal is to prove that each sign-in path enforces the identity provider's decisions and cannot be bypassed, and that sessions end when they should. Check whether the account created by one method can be reached by another, and whether disabling a user in the directory removes access in Open WebUI.

  • OIDC sign-in: Test redirect handling, token validation, and whether a disabled or removed identity still gets a session.
  • LDAP sign-in: Test bind behavior, group filters, and whether account lookup can be manipulated with special characters.
  • SCIM provisioning: Confirm that deprovisioning and group changes in the directory reach Open WebUI and that the SCIM token is scoped and protected.
  • Authenticator-app MFA: Test enrollment, recovery paths, and whether a second factor can be skipped by switching sign-in method.
  • Session lifetime: Test sign-out and token expiry, noting that without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks.

Confirm with your identity team which sign-in methods are enabled in production and which accounts still use local passwords.

Test cases tied to each Open WebUI feature

Each card below is a question the penetration test should answer about a specific Open WebUI feature. The questions cover sharing, sessions, API keys, server-side execution, document ingestion and identity headers, which are the places where a shared deployment most often lets one user reach another user's data or actions.

Can one user reach another user's knowledge base?

Knowledge bases, models and tools can be shared with groups or individual users through per-resource permissions. Test whether a user who is not on a shared group can list, query or download a knowledge base by guessing or reusing its identifier, both in the web interface and through the API. Also check that removing a user from a group removes their access to resources shared through that group.

Open WebUI features

Does a revoked session still work?

Signing out does not revoke tokens unless Redis is in place, and tokens otherwise stay valid until they expire, by default after 4 weeks. Test sign-out, password reset, account deactivation and removal from an identity provider group, then replay the old token against the API and websocket endpoints. Confirm the behavior matches the revocation expectations written into your access policy.

Scaling Open WebUI docs

Does an API key reach more than its owner can?

API keys act on behalf of the user who created them, so their effective permissions should match that user's current role and groups. Test whether a key created by a standard user can call admin-only endpoints, read other users' chats, or keep working after the owner is disabled or demoted. Also check whether keys can be scoped, how they are displayed after creation, and whether they are logged.

Can a tool or function run server-side code?

Tools and functions are Python that runs on the server, so anyone who can create or import one can execute commands in the container. Test whether a non-admin user can add a function, whether an imported community plugin runs with the server's network and file access, and whether code execution features in chat reach the host or stay inside the sandbox. Record which roles hold each permission.

Can a crafted document change model behavior?

Uploaded files and web pages that feed retrieval can carry instructions that the model treats as part of its prompt. Build a document with embedded instructions, such as a request to ignore earlier rules or reveal retrieved content from other knowledge bases, and upload it to a knowledge base that a second user can query. Check whether the response leaks data, calls tools it should not call, or cites content the asking user cannot access.

Can a forged identity header sign in as another user?

Trusted header sign-in accepts an identity from a request header set by a proxy. Send requests directly to the Open WebUI port and through the proxy with forged headers for an administrator account, and confirm that unauthenticated traffic cannot reach the application. Also check that the proxy strips client-supplied copies of the header before it adds its own.

How the hosting stack changes the test

The hosting stack decides which components a penetration test has to reach, so scope it from the architecture diagram before you scope the application. A single-replica Open WebUI with SQLite is a small surface. A multi-instance deployment adds PostgreSQL as the database, Redis for shared sessions, websocket connections and application state, shared file storage so uploads and knowledge stay reachable from every replica, and an external vector database, because the scaling guide warns that the default ChromaDB will crash when several workers or replicas run. Each of those is a service with its own credentials, network paths and misconfiguration risks, and each belongs in the test scope with its own access checks.

Redis changes more than performance. The scaling guide documents that without Redis, signing out does not revoke tokens: they stay valid until they expire, by default after 4 weeks. A tester should sign in, capture a session token, sign out, and confirm whether the token still works against the API and the web interface. Run that check on the exact version and configuration in use, since token handling is a behavior to verify rather than assume. If the result is a token that survives sign-out, the finding and its fix (shared Redis state and a shorter lifetime, where the configuration allows) should be recorded before the test closes.

SQLite is acceptable only for single-replica deployments, evaluation and small teams, and only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Ask which database and storage backend the deployment uses, then confirm the current requirements with the official scaling guide for your release. Record the answer in the scope document, because it determines whether concurrency, file locking and failover behavior are in the test plan at all.

Test depth options and when each fits

This table compares three levels of Open WebUI penetration test depth: black-box, grey-box and combined configuration review. Read each column for the questions it answers, the access it needs from you and the situations where it fits best. The main takeaway is that depth should follow what you are trusting the deployment to protect, not the size of the budget.

Test depthQuestions it answersAccess the client providesWhere it fits
Black-box web interfaceCan an unauthenticated or outside attacker reach sign-in, the API or upload paths and exploit them? Does the public surface leak version or debug information?Public URL and an agreed test window. No accounts or configuration files.Early exposure check before a first internet-facing launch, or a quick external recheck after a change to the reverse proxy.
Grey-box with standard user and admin accountsCan a signed-in user reach other users' chats, files, knowledge bases or models? Do RBAC groups and per-resource sharing hold? Can a standard user add tools, API keys or plugins they should not?Two or three test accounts (standard user, admin, optionally a user in a separate group), with SSO settings described and the API key feature enabled for testing.Pre-launch review of a shared company deployment, and periodic retests after new roles, connectors or tool settings are added.
Combined review with configuration and hosting stackAre secrets, session handling and trusted header settings correct? Do container, reverse proxy, PostgreSQL, Redis and vector store settings match the design? Is outbound traffic from the web loader and tools restricted?Read-only access to deployment manifests or Compose files, environment settings with secrets redacted, reverse proxy config, network rules, and test accounts. Access to logs or staging may be needed.Regulated or sensitive deployments, multi-replica setups using Redis and an external vector store, and first assessments before an external audit or customer security review.
Typical uncovered riskBlack-box misses authorization gaps between users. Grey-box misses stack misconfigurations. Combined review takes the most access and coordination.Confirm in writing which accounts, environments and data may be used during testing.Choose the level that matches the highest-impact gap you most need to rule out.

How the test is scoped and run

The sequence turns a written scope into a tested, validated and retested Open WebUI deployment, with each step closed by a check the client can see. Scope, access and environment are settled before any test traffic is sent.

  1. Agree scope and rules of engagement in writing

    DeployOpen and the client agree in writing which hosts, domains, APIs, tools and MCP servers are in scope, which tests are excluded (such as denial-of-service or load testing), who the emergency contacts are, and when testing windows open. The client's security owner signs the rules of engagement. Done means the signed document names the exact target URLs and the boundaries that testers must not cross.

  2. Confirm the target is staging or an agreed environment

    The client confirms that the target is a staging or otherwise agreed copy of the production configuration, with production secrets and real chat history not present. Testers check the hostname, the instance banner and the deployment record against the scope document before any active test begins. If the only available target is production, the parties agree in writing on the extra safeguards, backups and rollback steps first.

  3. Collect version, deployment method and configuration

    The client supplies the running Open WebUI version, the deployment method (Docker, Docker Compose, Kubernetes with Helm, or pip install open-webui followed by open-webui serve), the reverse proxy and TLS setup, the database and vector store in use, and whether Redis and shared file storage are present for multiple replicas. Testers use this to decide which checks apply, for example whether tokens persist after sign-out without Redis. Done means the inventory is complete and reviewed by both sides.

  4. Set up identity and test accounts for each role

    The client configures the identity method under test (local accounts, OIDC, LDAP or SCIM-provisioned users) and creates test accounts for every role and group the scope covers: anonymous, standard user, group members, a group admin, a full administrator, and any API-key holder. Testers confirm that each group has at least one account and that the accounts reflect the production permission model, so that authorization findings are meaningful. Done means a role matrix lists every account and its expected permissions.

  5. Run unauthenticated and authenticated tests

    Testers first probe the unauthenticated surface (login, sign-up, public endpoints, exposed documentation and health routes), then repeat tests as each role. Authenticated work covers resource sharing and RBAC, API key scope, tools and MCP server connections, file upload and RAG retrieval, and prompt injection against the model and its tools. Each test is logged with the account used, the request, the expected result and the observed result, so the evidence can be reproduced. Done means every row of the test plan has a recorded outcome.

  6. Validate findings and remove false positives

    Each candidate finding is reproduced from a clean state, rated against the environment (for example, whether an attacker needs a valid account or a specific network position), and checked against the client's configuration to rule out mistakes in the test setup. Findings that depend on test-only settings are removed or marked as configuration notes. Done means every finding has reproduction steps, evidence and a severity agreed with the client's security lead.

  7. Deliver the report with fixes and retest

    DeployOpen delivers a written report covering scope, method, the role matrix, each validated finding with reproduction steps, the recommended fix, and any items the client should confirm with the Open WebUI project or its own platform team. After the client applies fixes, DeployOpen retests the affected items on the same environment and records the result. Done means the report and the retest record are both accepted by the client and the open items have owners.

Trust boundaries the test must cross

The walk starts at the browser and API clients, which reach Open WebUI only through the reverse proxy, so the proxy is the first boundary to test for header trust and exposed paths. From Open WebUI, the test follows the hand-offs to the identity provider for sign-in, to PostgreSQL and Redis for session and application state, and to file storage and the vector database for uploads and knowledge. The outbound edges to model providers and tool servers cross into systems you do not operate, so check what Open WebUI is allowed to reach from there.

Trust boundaries between users, the application, data stores and external services.

Security and operational points for the test

Penetration testing an AI chat platform touches real credentials, real conversations and real monitoring. The cards below set the rules the test team and the client agree on before the first request is sent, so that the findings are useful and nobody is harmed by the testing itself.

Test against non-production data

Run the test on a staging instance seeded with synthetic users, synthetic chats and dummy knowledge base documents. Production Open WebUI holds employee conversations, uploaded files and model provider keys, and an active test can create, modify or delete them. Ask the client to confirm that the staging instance uses the same version, authentication setup and vector store as production, so the results describe the system people actually use.

Keep real chat content out of evidence

Testers will see conversation text, uploaded documents and retrieved snippets during prompt injection and RAG tests. Agree in writing how screenshots, traces and reports are stored, who can read them, and how they are deleted after the engagement. Where a finding depends on sensitive content, describe the data class and location rather than copying the content into the report.

Handle admin and API credentials carefully

Testing needs accounts for each role, including administrator, standard user and a user with no group membership, plus any API keys used for scripted checks. Issue dedicated test accounts, record who holds them, store them in the client's approved secret store, and revoke them when the test ends. Do not reuse personal administrator accounts, and confirm that test keys cannot reach production model providers with spend or data access you did not agree to.

Coordinate with the client's monitoring

Scanning, fuzzing and brute-force attempts against login and API endpoints will trigger rate limits, intrusion alerts and log-based detections. Share the test window, source addresses and test account names with the security operations team in advance, so alerts are recognized as expected and do not start an incident response. Ask the client to keep the detections running so the test also shows whether they fire.

Track findings against the version under test

Record the exact Open WebUI version, image digest, database type, vector store and identity provider configuration at the start of testing. Open WebUI publishes new releases frequently, so a finding without a version may not reproduce after an upgrade. Note which findings are configuration issues the client can change and which are code issues that depend on a vendor fix, then retest each fix on the same build.

Latest release in facts
v0.12.3
Open WebUI releases

Questions buyers ask before commissioning an Open WebUI pen test

What does an Open WebUI penetration test cost?

No fixed price applies, because the fee follows from the written scope. DeployOpen does not publish a price list, and a quote is produced after the scope is agreed. The main drivers are the breadth of the scope (which of authentication, RBAC, API keys, tools and MCP servers, file upload and RAG, prompt injection and the hosting stack are included), the number of user roles to test, the number of integrations such as SSO providers, model servers, tool servers and vector stores, the number of distinct stack components, and how many retest rounds are planned. Ask for a quote that lists each area in scope, the roles and integrations covered, and the retest rounds included, so you can compare proposals on the same basis.

How long does an Open WebUI penetration test take?

Duration depends on the same factors that drive scope: how many roles and integrations are tested, how complex the hosting stack is, and whether the test includes a retest after fixes. Access setup and environment review also add time before testing begins. Ask the provider to show the planned phases, the dates each phase needs your input, and when the final report and any retest will be delivered. Agree these dates in writing as part of the fixed scope.

What does our team need to provide before testing starts?

Plan to provide test accounts for each role you want covered, such as an anonymous or pending user, a standard user, a group or workspace owner and an administrator. You will also need a staging or test environment that matches production, or written approval to test production with agreed limits. Architecture documents should show how Open WebUI is deployed, which identity provider and proxy sit in front of it, where the database, Redis and file storage run, and which model providers, tool servers and vector databases it connects to. Confirm the rules of engagement, including who to contact if a test causes an outage.

Can our own security team run an Open WebUI penetration test?

Yes, if your team has testers who understand web application attacks, API authentication, and the specific Open WebUI features in scope. Internal teams often cover routine checks well, but independent testing gives a second view of authorization flaws and prompt injection paths that the team that built the configuration may miss. A common split is to have internal staff run regular checks and bring in an outside tester for a defined scope each year or after major changes. Whoever tests, record the scope, accounts used and evidence collected so the results can be reproduced and retested.

Does a penetration test count as a compliance audit?

No. A penetration test is a technical assessment of how the system can be attacked in the scope agreed. It does not issue an audit report, attestation or certification. Independent auditors and certification bodies make those determinations against a defined framework. A test can supply evidence that auditors may review, such as findings, fixes and retest results, and DeployOpen prepares systems and evidence for compliance assessments without issuing audit reports. Ask your auditor which evidence they expect before you commission the test so the scope and reporting format can match.

How should we handle prompt injection findings when the result depends on the model?

Treat these findings as dependent on the model and configuration, not as a fixed property of Open WebUI. The same injected instruction can succeed on one model and fail on another, and model updates can change the result. Record the exact model name, version and system prompt used during testing, then retest after any model change. Reduce impact through controls outside the model: limit which tools a model can call, restrict tool and file permissions, avoid exposing sensitive knowledge bases to roles that do not need them, and require approval for actions with side effects. Ask the tester to report which findings remain if the model is replaced.

What should the report and retest include?

A useful report lists each finding with its affected area, the role and integration involved, reproduction steps, evidence, severity as the tester assessed it, and a recommended fix. Ask whether a retest round is included, which findings it covers, and whether it checks that each fix works without creating a new gap. Keep the report, scope and retest results together so your team and any auditor can trace each finding to its resolution.

Limits to confirm in your environment

Penetration test scope depends on facts about your specific deployment, not only on the product. The cards below list the settings and versions that change what is in scope, so confirm them with your team before the scope is written and signed.

Exact Open WebUI version

Record the precise release running in production, including any container tag or pip package version, and compare it with the latest published release on the project's GitHub releases page. Version v0.12.3 was published on October 16, 2026, following v0.12.0 on October 10 and v0.11.0 in July. Testers need the exact build to match findings against known issues and to avoid testing code that is already patched.

GitHub releases

License terms for your user count

The Open WebUI License changed from BSD-3-Clause for code through v0.6.5 and applies to later releases. Its branding clause applies to deployments above 50 users in any rolling 30-day period unless an enterprise license or written contributor permission is held. Confirm your active user count and license status, because branding changes affect what a tester should expect to see on the login and interface pages.

Open WebUI License docs

SSO methods and provisioning

Identify which sign-in paths are enabled: OIDC, LDAP, trusted header authentication behind a proxy, or local passwords, and whether SCIM 2.0 provisioning is active. Each path has its own failure modes, such as forged headers or stale group mappings. Testers need the list of enabled methods and any fallback local login that remains reachable.

Open WebUI features

Tool and function creation settings

Check whether users, or only administrators, can create, import or edit tools and functions, and whether plugins are enabled at all. Permission to add tools can equal code execution on the server, so this setting sets the scope of server-side testing. Ask who holds these permissions and whether community plugins have been reviewed before the test window opens.

Vector database in use

Confirm which vector store backs retrieval, since the default ChromaDB is not suited to multi-process or multi-replica setups. Testers need the product name, its network location, its access controls and who can reach it directly. Access to the vector store can expose uploaded documents outside Open WebUI's own permission checks, so include it in scope.

Enterprise license feature differences

Ask whether an enterprise license is held, since it can change white-labeling, branding and support options. Pricing is quoted after contacting enterprise sales, so confirm the feature set in writing with the vendor. Testers should know which features are present in the build under test, so findings describe the actual configuration rather than the documented free feature set.

Open WebUI Enterprise docs

Why the license and version affect the test

The version and license of the Open WebUI build under test decide which features exist, which fixes apply and which obligations sit with the operator, so confirm both before the test scope is signed. Code from v0.6.6 onward is distributed under the Open WebUI License, while code through v0.6.5 remains BSD-3-Clause. The most recent release in the project's history we have verified is v0.12.3, published on October 16, 2026, so a deployment on an older tag may be missing controls that the testers expect to see, and a newer tag may have changed settings the test plan names.

The license also shapes the test. The Open WebUI License forbids altering or removing branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. A tester who edits the interface to match a client's own branding, or a client who has already changed it, should record which side of that threshold the deployment sits on. Ask the client for their user counts over the last 30 days, the branding state and any enterprise or written permission on file, and put the answers in the scope document so the report does not later contradict the license terms.

Do not assume these points from memory or from a blog post. Read the current Open WebUI License page and the release notes for the exact tag under test, then confirm with the vendor's enterprise sales team any licensing question that affects the deployment. Record the version string, image digest and license terms in the test plan, and retest the specific settings after any upgrade, because a version change can move a finding from fixed to open or the reverse.

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.