# GHSA-94F3-2RH7-8MW3: Stored XSS via unsafe RTF hyperlink schemes

- Database: GitHub
- Severity: CVSS 8.2 (High)
- Published: 2026-08-28
- Modified: 2026-08-28

## Affected versions

- @file-viewer/renderer-word (npm): through 2.4.0

## Description

### Summary

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.

## References

- https://github.com/flyfish-dev/file-viewer/security/advisories/GHSA-94f3-2rh7-8mw3

Page: https://cve.now/GHSA-94F3-2RH7-8MW3

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
