Stored XSS via unsafe RTF hyperlink schemes
Description
Before 3.0.0, @file-viewer/renderer-word accepted attacker-controlled RTF HYPERLINK field targets from rtf.js without an application-level URL-scheme policy. A crafted RTF could render a live javascript:, vbscript:, data:, or similarly unsafe link. Script could execute in the embedding origin if a viewer clicked it.
Impact
Applications previewing untrusted RTF files could expose authenticated users to stored cross-site scripting after link interaction.
Fix
Version 3.0.0 applies the shared document link policy to RTF output, blocks external links by default, permits only approved schemes in explicit allow mode, and sanitizes the complete renderer output before mounting. File-level tests cover direct HTML output and mounted DOM behavior under both policies.
Thanks to @dkhonker for responsibly reporting this issue.