Advisories
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
4,429 items
The task_create tool in DeepSeek TUI spawns durable sub-agents that default to allow_shell=true (config.rs:1499) and auto_approve=true (task_manager.rs:297). A user who approves a benign-looking task_create call therefore unknowingly grants the sub-agent unapproved shell access, which can follow attacker-controlled instructions in a cloned repository's AGENTS.md file and run commands without a further approval prompt. The reporter demonstrates remote code execution through a proof of concept that triggers a callback to a collaborator server.
Fix: Default allow_shell to false for durable tasks (config.rs:1499: self.allow_shell.unwrap_or(false)); default auto_approve to false for durable tasks (task_manager.rs:297: auto_approve: None, instead of Some(true)); and…
GitHub Advisory DatabaseThe run_tests tool in DeepSeek TUI executes cargo test with ApprovalRequirement::Auto, so it runs without a user approval prompt. Because cargo test compiles and executes test binaries, build.rs scripts and proc macros, a malicious repository can run arbitrary shell commands with no approval, and the source states AGENTS.md can instruct the model to call run_tests at session start.
Fix: Change run_tests to require approval, matching exec_shell: fn approval_requirement(&self) -> ApprovalRequirement { ApprovalRequirement::Required }
DeepSeek TUI's fetch_url tool checks the initial URL's resolved IP against an is_restricted_ip() blocklist, but its reqwest HTTP client follows up to five redirects without re-validating each target. A public URL that redirects to 169.254.169.254 therefore reaches the restricted address, and the researcher confirmed a 302 redirect was followed to that IP and to an attacker-controlled host. On cloud-hosted instances, prompt injection can drive this to exfiltrate IAM credentials and instance metadata.
Open WebUI's LDAP and OAuth authentication flows determine a new user's role before inserting the user, creating a time-of-check-time-of-use race on fresh instances. Concurrent first-login requests can all observe an empty user table and all receive the admin role, while the signup handler had already been patched against this pattern. The LDAP and OAuth paths were not updated, so any user who times a first login concurrently with the legitimate first admin can gain full admin privileges, including access to user data, system configuration, API keys, and connected LLM backends.
Open WebUI's `/api/v1/utils/code/execute` endpoint runs Python code through a connected Jupyter server for any verified user, even when the admin has set `ENABLE_CODE_EXECUTION=false`, because the endpoint never checks that flag. A proof of concept on v0.8.11 Docker, verified 2026-03-25, ran `os.popen("id")` and read internal secret service content, and the Jupyter container's network access to internal services also makes this an SSRF vector.
Fix: Fixed in commit 6d736d3c5, first released in v0.8.12. The `/api/v1/utils/code/execute` handler in `backend/open_webui/routers/utils.py` now checks `request.app.state.config.ENABLE_CODE_EXECUTION` before dispatching to…
Any authenticated Open WebUI user can permanently delete files owned by other users through DELETE /api/v1/files/{id} when the file is referenced in any shared chat. The has_access_to_file() function in backend/open_webui/routers/files.py grants access through its shared-chat branch without checking the requesting user's identity or the access_type operation. File UUIDs are exposed to users with read access to a knowledge base via GET /api/v1/knowledge/{id}/files, and the flaw was tested on version 0.8.3.
Multiple Open WebUI endpoints accept a user-supplied `file_id` and attach that file to a resource the caller controls without checking the caller's access to the file. Path 1 is `POST /api/v1/folders/{id}/update` through the folder knowledge consumer in `backend/open_webui/utils/middleware.py`, where the referenced file becomes RAG context for chat completions. Path 2 is the knowledge-base attach endpoints in `backend/open_webui/routers/knowledge.py`, which grant read and write access to the file through `/api/v1/files/{id}/content` and `/api/v1/files/{id}/data/content/update`. An authenticated user who knows another user's file UUID can exfiltrate that file, and on Path 2 also overwrite it.
Open WebUI stores OAuth profile pictures as data URIs whose MIME type is inferred from the picture URL extension via mimetypes.guess_type, so a .svg URL in the OAuth picture claim is saved as data:image/svg+xml. The OAuth path skips the validate_profile_image_url validator that restricts profile images to PNG, JPEG, GIF and WebP. The endpoint GET /api/v1/users/{id}/profile/image then serves the stored SVG as an inline document, and because security headers are off by default, an authenticated user who opens that URL can run script in the Open WebUI origin and read localStorage.token, leading to account takeover.
Open WebUI's validate_url function parses the hostname with urlparse, but the requests library that later sends the request in files.py resolves the same URL differently, so validation can be bypassed. For example, http://127.0.0.1:6666\@1.1.1.1 passes urlparse as host 1.1.1.1 while requests connects to 127.0.0.1. The source contains a test script reproducing the parsing mismatch.
Any authenticated low-privilege user can call GET /api/tasks to list active background tasks across all users and POST /api/tasks/stop/{task_id} to stop tasks owned by others in Open WebUI. Both endpoints require only get_verified_user, and the helpers in backend/open_webui/tasks.py operate on a global task namespace with no owner check. This allows a casual user to repeatedly cancel other users' chat tasks, disrupting system-wide chat use in multi-user deployments.
Open WebUI's `_validate_collection_access()` checks only the `user-memory-*` and `file-*` collection name prefixes, so knowledge base collections named with raw UUIDs pass unchecked. Any authenticated non-admin user who knows a private knowledge base UUID can read its content through the `/api/v1/retrieval/query/doc` and `/api/v1/retrieval/query/collection` endpoints. The same gap lets an attacker write to another user's knowledge base through the `/api/v1/retrieval/process/*` endpoints, including overwriting content.
Open WebUI v0.6.43 lets a low-privilege user invoke restricted server tools through the chat completion API by supplying a tool's ID in the tool_ids parameter. The chat_completion flow never checks whether the caller may use the tool, so the stored authentication token runs the tool with server privileges, even for private MCP servers.
Fix: Fixed across two releases. Local Tool records were fixed in commit 9b06fdc8f, first released in v0.7.0: get_tools() in backend/open_webui/utils/tools.py now rejects requested tool_ids the caller neither owns nor holds a…
Open WebUI, at version v0.6.18 as tested, does not check that a Chat ID belongs to the requesting user on the /api/chat/completions endpoint. Any user with their own API key and another user's Chat ID can continue that user's conversation and read it, provided both users have access to the same model. The flaw is fixed in v0.9.0.
GHSA-24c9-2m8q-qhmh describes a Server-Side Request Forgery in `_process_picture_url()` in `backend/open_webui/utils/oauth.py` (around line 1338) in Open WebUI. The function fetches arbitrary URLs taken from OAuth `picture` claims without calling `validate_url()`, although the codebase applies that check in other paths such as `files.py` and `images.py`. An attacker controlling the OIDC provider can make the server request internal resources and exfiltrate the response, with `ENABLE_OAUTH_SIGNUP=true` and generic OIDC configured as prerequisites.
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.
Open WebUI's channel webhook create and update flow accepts arbitrary profile_image_url values, including data:image/svg+xml;base64 payloads. The profile image endpoint at GET /api/v1/channels/webhooks/{webhook_id}/profile/image decodes and serves that SVG as image/svg+xml without sanitization. Script handlers such as onload then run in the application origin when the URL is opened, allowing stored XSS for any viewer, with the Channels (Beta) feature enabled and the viewer authenticated and verified.
Open WebUI's audio transcription upload endpoint, /api/v1/audio/transcriptions, takes the file extension from the user-supplied filename and stores the file under CACHE_DIR/audio/transcriptions/<uuid>.<ext> with no allowlist. The /cache/{path} route serves it via FileResponse, which sets Content-Type from that extension and sends no Content-Disposition, so a polyglot WAV+HTML file uploaded as pwn.html is returned as text/html. A verified user with the default-on chat.stt permission can exploit this to run embedded script in the Open WebUI origin when another user opens the link, with the JWT in localStorage.token reachable from JavaScript.
Missing integrity verification in the Triton inference handler in Amazon SageMaker Python SDK v2 before v2.257.2 and v3 before v3.8.0 lets a remote authenticated actor with S3 write access to the model artifact path replace model artifacts with a crafted pickle payload. The payload is deserialized without verification, allowing code execution in inference containers.
Fix: Upgrade to Amazon SageMaker Python SDK v2.257.2 or v3.8.0, and rebuild any Triton models previously created with ModelBuilder using the updated SDK.
Open WebUI's HTML rendering view embeds chat HTML in an iFrame with the sandbox directive `allow-scripts allow-forms allow-same-origin`, which largely nullifies the sandbox. A script placed in a chat can run and read the user's `localStorage` token, tested on version 0.5.4. The attacker must trick a user into entering the input, sharing or importing a chat, or displaying an uploaded file, so the report rates Attack Complexity as High.
Fix: The iFrame sandbox should be defined more restrictively to prevent scripts from executing with access to the parent's data.
GHSA-r8wh-8m7r-fh33 reports a missing permission check across the files/ API endpoints in Open WebUI. Any authenticated user can list, read and delete files uploaded by other users, because the listing, content and delete routes filter nothing by user_id. The reporter demonstrated this with a low-privilege account against a clean install of the latest version using the ghcr.io/open-webui/open-webui:ollama image.
Fix: Fixed in PR #23626 (commit 96a0b3239), first released in v0.9.0 (Apr 2026). LDAP and OAuth registration now insert the new user with DEFAULT_USER_ROLE, then check Users.get_num_users() == 1 and promote only the sole…
GitHub Advisory DatabaseFix: Suggested fix: gate the shared-chat branch on access_type so it only authorizes read operations, by checking if access_type == "read" before returning True when shared chats reference the file.
Fix: Suggested remediation: store task ownership metadata such as user_id and chat_id, then enforce owner-only access for non-admin users.
Fix: Fixed in commit cf4218e68, first released in v0.9.0 (Apr 2026). The chat_completion handler in backend/open_webui/main.py:1868 now verifies chat ownership with Chats.is_chat_owner(chat_id, user.id) and returns 404 for…
GitHub Advisory DatabaseFix: 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.