---
id: CVE-2026-91127
title: >-
  File Viewer is a browser-native viewer for Office, PDF, CAD, archive, and
  other files in private and internal web applications
summary: >-
  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 h…
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N'
cwe:
  - CWE-79
  - CWE-83
vendor: file-viewer
product: '@file-viewer/doc'
affected:
  - '@file-viewer/doc <= 2.3.0'
  - msdoc-viewer <= 0.2.1
patched:
  - '@file-viewer/doc 2.3.1'
  - msdoc-viewer 0.2.2
published: '2026-09-18'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:25:27.050'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-91127'
references:
  - url: >-
      https://github.com/flyfish-dev/file-viewer/commit/ef045680f8d9830a3eee9612f7df46a734361b07
    label: security-advisories@github.com
  - url: 'https://github.com/flyfish-dev/file-viewer/releases/tag/v2.3.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/flyfish-dev/file-viewer/security/advisories/GHSA-3753-m2x2-q623
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-3753-m2x2-q623'
tags:
  - nvd
  - ghsa
  - npm
  - cve.org
epss: 0.00397
epssPercentile: 0.31134
aliases:
  - GHSA-3753-m2x2-q623
ecosystem: npm
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-22T15:10:14.012431Z'
ingestedAt: '2026-09-18T17:46:41.529Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-91127)

Affected packages:

- `@file-viewer/doc <= 2.3.0`
- `msdoc-viewer <= 0.2.1`

Patched in:

- `@file-viewer/doc 2.3.1`
- `msdoc-viewer 0.2.2`

Source: https://github.com/advisories/GHSA-3753-m2x2-q623
