Skip to content
MediumVulnerability

GHSA-f776-fp4w-266c: Open WebUI vulnerable to blind server side request forgery (SSRF) via the PDF generate function

Published
Record updated
View JSON
Affected
  • open-webui < 0.5.11
Fixed in
0.5.11
  • released February 13, 2025, 455 days before disclosure

Summary

Open WebUI 0.5.4 contains a blind server-side request forgery in the PDF export path at /api/v1/utils/pdf. User-supplied fields such as title are interpreted as HTML and embedded into the PDF, so an <img> tag in title forces the server to issue an outbound GET request. The flaw is blind because no response content could be read, though response-delay timing could allow internal asset enumeration.

Mitigation

Fixed in commit 167c8bf00, first released in v0.5.11 (2025-02). The fix wraps every user-controllable field flowing into the PDF HTML template (title, content, role, model, formatted date) in html.escape() before the template is passed to fpdf2.write_html(). Users on >= 0.5.11 are not affected.