mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #16539] feat: Add user-consent gate for external resources embedded in AI responses (images, iframes, etc.) #17948
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dynumo on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16539
Check Existing Issues
Problem Description
While testing Open WebUI’s image-generation tool settings, the Kimi K2 LLM model (which has no native image-generation capability) unexpectedly returned a response that embedded an image from a third-party service. The image was generated on-the-fly by passing my prompt as URL parameters to an external endpoint, then hot-linked back into the chat as an image. This happened silently - no warning, no consent prompt to load an external resource, and no indication that my prompt had been transmitted to an outside server. It was on inspection with my browser tools that I worked out what had happened.
If a malicious or compromised model were to do the same thing, it could:
Desired Solution you'd like
Implement a user-consent gate for all external resources embedded in AI responses (images, iframes, audio, video, etc.) - similar to the “Load images from this sender?” prompt in email clients.
Specifically:
Alternatives Considered
Server-side URL stripping: Breaks legitimate diagrams, documentation screenshots, and other helpful external assets.
Additional Context
No response