Vulnerability library
Security checkSeptember 18, 2026

File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@file-viewer/doc

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Before 2.3.1, the legacy .doc renderer emitted document hyperlink targets after HTML escaping but without a URL-scheme allowlist. A crafted .doc could therefore render a live javascript:, vbscript:, data:, or similarly unsafe link. Script could execute in the embedding origin if a viewer clicked it.

Recommendation

Update the @file-viewer/doc package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 2.3.0
  • Patched version(s): 2.3.1

References

Could your website be exposed too?

SmartScanner can check your website for File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 18, 2026