Cross-Site Scripting (XSS) in @file-viewer/doc
Summary
Cross-site scripting in @file-viewer/doc (CVE-2026-91127). Confidential information can be exposed externally. Mitigation: upgrade to 2.3.1 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-91127 has been found in @file-viewer/doc.
Confidential information can be exposed externally. CVSS score: 8.2/10.
What to do: upgrade @file-viewer/doc to 2.3.1 or later.
If unsure, ask your IT team or search "@file-viewer/doc CVE-2026-91127" on the vendor's site.
CVE-2026-91127 (@file-viewer/doc) — CWE-79 / CVSS v3 8.2
Attack vector: remote (network-reachable) / unauthenticated
Patched: 2.3.1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Cross-site scripting (XSS) (CWE-79) exists in @file-viewer/doc.
Check the vendor advisory for the affected versions of @file-viewer/doc.
Severity: High (CVSS 8.2/10). Confidential information can be exposed externally.
Update to 2.3.1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r '@file-viewer/doc' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r '@file-viewer/doc' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@file-viewer/docを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade @file-viewer/doc to 2.3.1ステージング環境で 2.3.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npm@file-viewer/doc |
< 2.3.1→ 2.3.1 |
2.3.1 |
| npmmsdoc-viewer |
< 0.2.2→ 0.2.2 |
0.2.2 |
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com
- web github.com