# CVE-2026-91127: File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 25, 2026-11-26)
- **CWE:** CWE-79, CWE-83
- **Aliases:** GHSA-3753-m2x2-q623
- **Published:** 2026-09-18T17:18:40.370Z
- **Modified:** 2026-09-24T21:25:27.050Z

## Who should check

- Projects that depend on npm package @file-viewer/doc (\< 2.3.1)
- Projects that depend on npm package msdoc-viewer (\< 0.2.2)
- Anyone running flyfish-dev file-viewer \< 2.3.1
- Anyone running @file-viewer doc \< 2.3.1
- Anyone running flyfish-dev msdoc-viewer \< 0.2.2

## 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.

## Affected and fixed versions

- npm `@file-viewer/doc`: affected \< 2.3.1; fixed 2.3.1 (osv)
- npm `msdoc-viewer`: affected \< 0.2.2; fixed 0.2.2 (osv)
- flyfish-dev file-viewer: \< 2.3.1 (cvelist)
- @file-viewer doc: \< 2.3.1 (cvelist)
- flyfish-dev msdoc-viewer: \< 0.2.2 (cvelist)

## Mitigation

- Upgrade @file-viewer/doc to 2.3.1 or later.
- Upgrade msdoc-viewer to 0.2.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-91127. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-91127.md
Affected: @file-viewer/doc < 2.3.1; msdoc-viewer < 0.2.2
Fixed in: 2.3.1, 0.2.2

Steps:
1. Search this machine and project for @file-viewer/doc (npm), msdoc-viewer (npm), flyfish-dev file-viewer, @file-viewer doc, flyfish-dev msdoc-viewer: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-91127 being exploited?

There is no confirmed exploitation: CVE-2026-91127 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-91127?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-91127?

@file-viewer/doc \< 2.3.1; msdoc-viewer \< 0.2.2.

### Is there a fix for CVE-2026-91127?

Yes. Fixed in 2.3.1, 0.2.2. Upgrade @file-viewer/doc to 2.3.1 or later. Upgrade msdoc-viewer to 0.2.2 or later.

### How do I check if I'm affected by CVE-2026-91127?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/flyfish-dev/file-viewer/security/advisories/GHSA-3753-m2x2-q623>
- patch: <https://github.com/flyfish-dev/file-viewer/commit/ef045680f8d9830a3eee9612f7df46a734361b07>
- other: <https://github.com/flyfish-dev/file-viewer/releases/tag/v2.3.1>
- other: <https://github.com/flyfish-dev/file-viewer>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-91127>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3753-m2x2-q623> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-91127> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-91127>
