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

CVE-2026-45347: Open WebUI vulnerable to blind server side request forgery (SSRF) via the PDF generate function

mediumCVSS 3.1 4.3GHSA-f776-fp4w-266c

Open WebUI before 0.5.11 builds its chat PDF export from user input as HTML. A logged-in user can put an img tag in the title and make the server send a GET request to any URL, a blind SSRF. Upgrade to 0.5.11.

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

What an attacker can do

POST /api/v1/utils/pdf takes a title and messages and builds an HTML template that fpdf2's write_html() renders. Scripts and tags such as iframe and object were blocked, but an img tag was not. The PoC set the title to an img tag pointing at an external Burp collaborator host and received an HTTPS callback from the server.

The SSRF is blind: the tester found no way to read responses. An attacker with a normal account can still send GET requests from the server's network position, probe internal hosts from response timing, and hit internal URLs that act on a plain GET.

The CVSS vector gives low privileges, no interaction and low integrity impact (4.3). The risk grows when Open WebUI runs inside a cloud or internal network where metadata endpoints or admin panels answer unauthenticated GETs.

Who is affected

pip package open-webui, anything below 0.5.11. The PoC was run on 0.5.4. Check:

pip show open-webui

Any instance where users can export chats to PDF is in scope.

open-webui

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

How to fix it

Upgrade to open-webui 0.5.11, released in February 2025:

pip install -U open-webui

Commit 167c8bf00 wraps title, content, role, model and the formatted date in html.escape() before the template reaches write_html(). The PoC payload becomes literal text and sends no request. No separate workaround is listed.

How to tell if you were hit

Look in proxy and application logs for POST /api/v1/utils/pdf requests whose title field contains angle brackets or img tags. Check server egress logs for outbound requests to unexpected hosts at the same time. Compare against exports by the same user.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Blind server side request forgery (SSRF) via the PDF generate function. The finding resulted from a penetration test for a customer. It is suspected that the root cause of the issue lies within the core of Open WebUI, which is why it is being reported as a security issue here. Tested on Open WebUI 0.5.4.

Details

In the PDF export, user inputs are interpreted as HTML and embedded into the PDF. According to tests, scripts and some potentially dangerous tags (iFrame, Object, etc.) are blocked, preventing server-side content from being read through this vulnerability. However, an image tag can be used to force a server-side request (SSRF), as shown in the following below.

PoC

Start a chat and export the PDF: grafik

Intercept the request and insert an ` tag into the title`:

POST /api/v1/utils/pdf HTTP/2
Host: domain.local
//Some headers removed
Content-Type: application/json
Content-Length: 541
Te: trailers

{"title":"","messages":[{"id":"81f24589-384d-431c-a26c-5cd3382ac941","parentId":null,"childrenIds":["0c1a3ee1-6350-4bb4-b95e-fc2341c47e8e"],"role":"user","content":"hallo","timestamp":1736932102,"models":["gpt-4o-POC"]},{"parentId":"81f24589-384d-431c-a26c-5cd3382ac941","id":"0c1a3ee1-6350-4bb4-b95e-fc2341c47e8e","childrenIds":[],"role":"assistant","content":"Hallo! Wie kann ich Ihnen helfen?","model":"gpt-4o-POC","modelName":"gpt-4o-POC","modelIdx":0,"userContext":null,"timestamp":1736932103,"done":true}]}

A HTTPS callback was received at https://d5jok0s7ghl1p77v5brlqlxwmnsega4z.oastify.com.

Impact

A user can force server-side GET requests. During the available testing time, no method was found to read the responses (Blind SSRF). Nonetheless, this should be prevented, as an attacker could enumerate internal assets through response delays and trigger arbitrary GET requests.

Resolution

Fixed in commit 167c8bf00, first released in v0.5.11 (2025-02). The fix wraps every user-controllable field that flows into the PDF HTML template (title, content, role, model, formatted date) in html.escape() before the template f-string is fed to fpdf2.write_html(). The PoC payload ` is escaped to &lt;img src=&#x27;...&#x27; /&gt; and rendered as literal text by fpdf2, with no HTML parsing and no outbound request. Users on >= 0.5.11` are not affected.

Credited to simioni87.

Questions

Can the attacker read the response from the target?

No. The advisory calls it blind SSRF and the tester found no way to read responses. Timing can still reveal internal hosts.

Which version fixes CVE-2026-45347?

open-webui 0.5.11 fixes it, by escaping user fields before the PDF HTML is built. Versions below 0.5.11 are affected.

Is a login needed?

Yes, a low-privilege account that can call the PDF export endpoint.

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