CVE-2026-45351: Open WebUI Exposes System Prompt to Regular User [Non-Admin]
Open WebUI 0.8.8 and earlier returns the admin-set system prompt of every available model to non-admin users in the /api/models response. Anyone who logs in can read the prompts. Fixed in 0.8.9.
Published May 14, 2026 · Updated May 19, 2026 · Analysis Oct 27, 2026
What an attacker can do
After login, the web app calls GET /api/models. The advisory shows that for a regular user the response includes the system prompt that an admin configured for each model on the workspace Models page. The reporter reproduced it on the main branch around v0.6.40.
No special request is needed: the page issues it by itself, and the same Bearer token an ordinary user has reads the data. The vector has low privileges, no interaction, high confidentiality impact (CWE-200, NVD 6.5).
System prompts often hold business rules, persona instructions, guardrail wording and sometimes internal URLs, names or credentials pasted by mistake. Leaking them helps users craft prompts that bypass restrictions and exposes proprietary prompt work. The advisory ties it to OWASP LLM07:2025 System Prompt Leakage.
Who is affected
pip package open-webui, up to and including 0.8.8. Check:
pip show open-webuiAny instance with non-admin accounts and models that carry system prompts is affected.
open-webui
- Ecosystem
- PyPI
- Affected
- <= 0.8.8
- Fixed in
- 0.8.9
- Check
pip show open-webui
How to fix it
Upgrade to open-webui 0.8.9:
pip install -U open-webuiNo workaround is documented. Treat any secret that was written into a system prompt as exposed and rotate it. Keep credentials out of prompts.
How to tell if you were hit
Inspect your own GET /api/models response using a non-admin token and check whether system fields appear. Reverse proxy logs cannot show who read the data, but they show which accounts logged in and fetched /api/models. Review prompts for sensitive content.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
_A regular user [non-admin] can view the system prompt of the model which is set by an admin._
Details
_When a regular user [non-admin] logs into the application, a http://IP:8080/api/models? web request is initiated by the application and in response, it reveals the system prompt of available models set by admin on models pages in workspace affecting the confidentiality of application_
Affected System
_Open WebUI v0.6.40 "main" branch_
Vulnerability Details and Advisory from OWASP
LLM07:2025 System Prompt Leakage - https://genai.owasp.org/llmrisk/llm072025-system-prompt-leakage/
PoC
_1. Regular User [Non-Admin] login on Open WebUI application._ _2. A series of web requests get generated by the application, and the http://IP:8080/api/models? is also gets generated by application ._ _3. The response of http://IP:8080/api/models? web request reveals the system prompt of all the available models which is set is by the admin on models pages in workspace._
Web Request
GET /api/models? HTTP/1.1 Host: localhost:8080 sec-ch-ua-platform: "Linux" authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdmYjUxMmFhLTBmMTAtNDRkZi1iOWY1LThmNDg2MWFhNWFmOCIsImV4cCI6MTc2NjU2MjE5OH0.yJpavBynKItPQv76SMGKK012JIf29PVUv9sjuCDuRGQ Accept-Language: en-US,en;q=0.9 sec-ch-ua: "Chromium";v="141", "Not?A_Brand";v="8" sec-ch-ua-mobile: ?0 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Accept: application/json Content-Type: application/json Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: http://localhost:8080/ Accept-Encoding: gzip, deflate, br Cookie: token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdmYjUxMmFhLTBmMTAtNDRkZi1iOWY1LThmNDg2MWFhNWFmOCIsImV4cCI6MTc2NjU2MjE5OH0.yJpavBynKItPQv76SMGKK012JIf29PVUv9sjuCDuRGQ Connection: keep-alive
Impact
_1. System prompts can reveal the model instructions, providing an attackers with inside knowledge about the system capabilities and bypass restrictions._ _2. Attacker can perform content manipulation affecting the input/output of the model._
Details from MITRE ATLAS
Discover LLM System Information - https://atlas.mitre.org/techniques/AML.T0069 Discover LLM System Information: System Instruction Keywords - https://atlas.mitre.org/techniques/AML.T0069.001 Discover LLM System Information: System Prompt - https://atlas.mitre.org/techniques/AML.T0069.002
Recommendation
_1. The web response should not reveal system prompt and related internal/back-end details regarding the model to the regular user._ _2. Only the model name and non-sensitive details should be revealed to regular user and internal/back-end details should not be disclosed._
Credited to shahzaibak96, Classic298.
Questions
- Can a regular user see admin system prompts in 0.8.8?
Yes. The /api/models response includes them for all available models.
- Does it need any special request?
No. The web app makes the call itself after login.
- What fixes CVE-2026-45351?
open-webui 0.8.9 fixes it. Versions up to 0.8.8 return admin-set system prompts to non-admin users in the models response.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Open WebUI vulnerabilities
All Open WebUI entriesCVE-2026-87011
Open WebUI: Unauthenticated requests can stall the server via uncached OIDC fetches in back-channel logout
high7.5Sep 10, 2026CVE-2026-87012
Open WebUI: Any authenticated user can suppress calendar alerts instance-wide via a non-numeric alert value
medium4.3Sep 10, 2026CVE-2026-87013
Open WebUI: Any authenticated user can start a non-terminating request via a folder parent cycle
medium4.3Sep 10, 2026CVE-2026-87014
Open WebUI: Admin demoted through SSO role sync keeps read and write access to all users' notes
medium6.5Sep 10, 2026CVE-2026-87015
Open WebUI: A user's session cookies are sent to tool servers configured for bearer authentication
medium6.8Sep 10, 2026CVE-2026-87016
Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite
high8.1Sep 10, 2026
