mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-06-07 01:12:47 +00:00
0a2dabc730
Per Opus advisor on stage-batch36: skip role='user' messages in _session_media_token_allows_image_path so a user-injected MEDIA: token cannot mint an allow-list entry for the user's own request. Preserves the original use case (assistant/tool emitted artifacts outside the active workspace) while making the implicit threat model explicit. Defense-in-depth — the single-user WebUI scope means same-origin user input already had the same effective access, but multi-user / shared WebUI deployments would benefit from the restriction.