NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Open WebUI

CVE-2026-45397: Open WebUI Vulnerable to Unauthenticated RAG Configuration Disclosure

mediumCVSS 3.1 5.3GHSA-65pg-qhhw-mxwg

Open WebUI before 0.9.5 answers GET /api/v1/retrieval/ with its RAG configuration to anyone, with no login. The response shows the embedding engine and model, reranker, chunk size and overlap, and the RAG template. Fixed in 0.9.5.

Published May 14, 2026 · Updated May 15, 2026 · Analysis Oct 27, 2026

What an attacker can do

In backend/open_webui/routers/retrieval.py, get_status() on GET / has no authentication dependency. Neighbouring routes such as /embedding and /config use get_admin_user, so this is a single omission. The handler returns CHUNK_SIZE, CHUNK_OVERLAP, RAG_TEMPLATE, RAG_EMBEDDING_ENGINE, RAG_EMBEDDING_MODEL, RAG_RERANKING_MODEL, RAG_EMBEDDING_BATCH_SIZE and related concurrency settings.

The PoC is a single curl -s TARGET/api/v1/retrieval/. No header, cookie or key is needed (CWE-306, NVD 5.3, confidentiality low).

Nothing secret such as an API key is in the listed fields. The leak is fingerprinting and recon: it names the AI stack, exposes the RAG prompt template, and gives the exact chunk size and overlap. The reporter's attack scenario uses those numbers to craft RAG poisoning payloads that will be retrieved. Internet-facing instances are the main concern.

Who is affected

pip package open-webui, below 0.9.5. The report confirmed it through v0.9.2. Test an instance directly:

curl -s HOST:8080/api/v1/retrieval/

If it returns JSON with status true and CHUNK_SIZE without a token, it is exposed. Check the version with pip show open-webui.

open-webui

Ecosystem
PyPI
Affected
< 0.9.5
Fixed in
0.9.5
Check
pip show open-webui

How to fix it

Upgrade to open-webui 0.9.5:

pip install -U open-webui

The advisory recommends adding a get_verified_user dependency, or get_admin_user for stricter control. A reverse proxy rule blocking unauthenticated access to /api/v1/retrieval/ also hides it, though the sources do not list that as an official workaround.

How to tell if you were hit

Search access logs for GET /api/v1/retrieval/ with no Authorization header or session cookie, especially from unknown addresses or scanners. These show someone read the configuration. Treat the RAG template as known to attackers and review retrieval content for poisoned documents.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Vulnerability Type: Information Disclosure / Missing Authentication Severity: Medium Component: backend/open_webui/routers/retrieval.py — get_status() (GET /) Affected Endpoint: GET /api/v1/retrieval/ Affected Version: Open WebUI main branch — confirmed unpatched through v0.9.2 Authentication Required: None — internet-facing with zero credentials CVSSv3.1 Score: 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)

---

Summary

GET /api/v1/retrieval/ returns live RAG pipeline configuration to any unauthenticated HTTP client. No Authorization header, cookie, or API key is required. Every adjacent endpoint on the same router (/embedding, /config) is correctly guarded by get_admin_user making this a targeted omission.

---

Root Cause

backend/open_webui/routers/retrieval.py:262

@router.get('/')
async def get_status(request: Request):   # ← no Depends(get_verified_user)
    return {
        'status': True,
        'CHUNK_SIZE': request.app.state.config.CHUNK_SIZE,
        'CHUNK_OVERLAP': request.app.state.config.CHUNK_OVERLAP,
        'RAG_TEMPLATE': request.app.state.config.RAG_TEMPLATE,
        'RAG_EMBEDDING_ENGINE': request.app.state.config.RAG_EMBEDDING_ENGINE,
        'RAG_EMBEDDING_MODEL': request.app.state.config.RAG_EMBEDDING_MODEL,
        'RAG_RERANKING_MODEL': request.app.state.config.RAG_RERANKING_MODEL,
        'RAG_EMBEDDING_BATCH_SIZE': request.app.state.config.RAG_EMBEDDING_BATCH_SIZE,
        'ENABLE_ASYNC_EMBEDDING': request.app.state.config.ENABLE_ASYNC_EMBEDDING,
        'RAG_EMBEDDING_CONCURRENT_REQUESTS': request.app.state.config.RAG_EMBEDDING_CONCURRENT_REQUESTS,
    }

Compare with every adjacent endpoint on the same router:

@router.get('/embedding')
async def get_embedding_config(request: Request, user=Depends(get_admin_user)):  # ✅

@router.get('/config')
async def get_rag_config(request: Request, user=Depends(get_admin_user)):        # ✅

---

Proof Of Concept — No Token Required

curl -s http://TARGET/api/v1/retrieval/
{
  "status": true,
  "CHUNK_SIZE": 1000,
  "CHUNK_OVERLAP": 100,
  "RAG_TEMPLATE": "### Task:\nRespond to the user query using the provided context...\n<context>\n{{CONTEXT}}\n</context>",
  "RAG_EMBEDDING_ENGINE": "",
  "RAG_EMBEDDING_MODEL": "sentence-transformers/all-MiniLM-L6-v2",
  "RAG_RERANKING_MODEL": "",
  "RAG_EMBEDDING_BATCH_SIZE": 1,
  "ENABLE_ASYNC_EMBEDDING": true,
  "RAG_EMBEDDING_CONCURRENT_REQUESTS": 0
}

---

Disclosed Information and Its Value to an Attacker

| Field | What it reveals |
| `RAG_EMBEDDING_ENGINE` | Backend type (OpenAI, Ollama, Azure, etc.) |
| `RAG_EMBEDDING_MODEL` | Exact model name — reveals embedding model |
| `RAG_RERANKING_MODEL` | Reranker in use — reveals reranker |
| `RAG_TEMPLATE` | **RAG template** — exposes the RAG template |
| `CHUNK_SIZE` / `CHUNK_OVERLAP` | Chunking parameters — enables exact reconstruction of how documents are split and retrieved |

---

Attack Scenario

  1. Attacker sends one unauthenticated HTTP GET to /api/v1/retrieval/.
  2. Response reveals the embedding model and chunking parameters.
  3. Attacker uses the exact chunk size/overlap to craft RAG poisoning payloads that are guaranteed to be retrieved.

---

Impact

  1. RAG template disclosure
  2. Infrastructure fingerprinting — embedding engine and model name reveal the AI stack to an internet scanner
  3. RAG attack surface mapping — chunk parameters enable precise calculation of retrieval boundaries
  4. Zero-effort recon — no brute force, no credentials, no rate-limit concern. Single request from any IP.

---

Recommended Fix

Add get_verified_user dependency (or get_admin_user for stricter control):

# BEFORE (vulnerable)
@router.get('/')
async def get_status(request: Request):


# AFTER
@router.get('/')
async def get_status(request: Request, user=Depends(get_verified_user)):

Credited to 0xRyuzak1, Classic298.

Questions

Do I need an account to read the RAG config?

No. The endpoint answers any HTTP client in affected versions.

Are API keys leaked?

Not by the fields the advisory lists. It lists models, engine, chunking values and the RAG template.

What fixes CVE-2026-45397?

open-webui 0.9.5 fixes it. Versions below 0.9.5 answer unauthenticated GET /api/v1/retrieval/ requests with the RAG configuration.

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 entries