You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat HTML sanitiser: cover poster/background/cite, inline style url(), and remote img src (defence in depth) #3864
Follow-up from the review of #3863 (refs #3858). The CSP (img-src 'self' asset: data:, default-src 'self') blocks these at load time in the shipped app, so they are defence in depth only:
sanitize-chat-html.ts: poster, background (table/td) and cite are URL-bearing attributes the hook does not cover (video poster=//evil, table background=//evil, blockquote cite=//evil survive).
Inline style survives (background:url(//evil), image-set, position:fixed UI redress): add style to FORBID_ATTR or filter url().
img/audio/source/track with an https:// src is kept because the hook reuses isSafeLinkHref (remote tracking pixel / IP leak outside the CSP): for src accept relative or data:image/* only.
Also: the daemon_setup.rs bundle re-check after the rename has no test of its own.
Fixed in #3866 (merged). Beyond the three items: <style> elements, form action/formaction and svg href/xlink:href are covered too. Not done: ping, longdesc and data attributes; the mid-install bundle race is only unit-tested at the helper.
Activity
mstomar125 commentedon Oct 22, 2026
Claiming: fixing the three sanitiser items and the missing daemon_setup bundle re-check test in one PR.
mstomar125 commentedon Oct 22, 2026
Fixed in #3866 (merged). Beyond the three items: <style> elements, form action/formaction and svg href/xlink:href are covered too. Not done: ping, longdesc and data attributes; the mid-install bundle race is only unit-tested at the helper.