CVE-2026-91127
published high CVSS 3.1 · 8.2File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer
Package status and fixes
Description
File Viewer is a browser-native viewer for Office, PDF, CAD, archive, and other files in private and internal web applications. Prior to @file-viewer/doc 2.3.1 and msdoc-viewer 0.2.2, the legacy DOC renderer emitted document-controlled hyperlink targets into generated HTML after character escaping but without restricting URL schemes. A crafted legacy DOC file could place javascript:, vbscript:, data:, or another unsafe scheme in a rendered link, and script could execute in the embedding application's origin when a user clicked the link. The fix blocks external document links by default, allows only HTTP(S), mail, telephone, safe relative URLs, and internal bookmarks when external links are explicitly enabled, and applies mount-boundary sanitization as defense in depth. This issue is fixed in @file-viewer/doc 2.3.1 and msdoc-viewer 0.2.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| flyfish-dev | file-viewer | < 2.3.1 (affected) | GitHub_M · cna |
| @file-viewer | doc | < 2.3.1 (affected) | GitHub_M · cna |
| flyfish-dev | msdoc-viewer | < 0.2.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-83 CWE-83: Improper Neutralization of Script in Attributes in a Web Page
References
3Provider assertions
2GitHub_M · cna
File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bf4e4717e742ee2532f7bf49475e21476d988478630582d3a4ca9d531e5e696b
- Ingested
- 23 Sep 2026, 09:39:57 UTC
- Source record
- Official CVE record