{"id":"CVE-2026-91127","aliases":[],"url":"https://o3.security/vulnerability/CVE-2026-91127","summary":"File Viewer: DOM XSS via unsafe hyperlink schemes in the legacy DOC renderer","details":"### Summary\n\nBefore 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.\n\n### Impact\n\nApplications rendering untrusted legacy `.doc` files with `@file-viewer/doc` or the `msdoc-viewer` compatibility package could expose their origin to attacker-controlled script after link interaction.\n\n### Fix\n\nVersion 2.3.1 centralizes link handling, removes control-character and scheme confusion, blocks external document links by default, and in explicit allow mode accepts only HTTP(S), mail, telephone, safe relative URLs, and internal bookmarks. The renderer output is safe before mounting, with mount-boundary sanitization as defense in depth. The `msdoc-viewer` compatibility release containing the fix is 0.2.2.\n\nThanks to @shashank420 for responsibly reporting this issue.","published":"2026-09-18T17:19:42Z","modified":"2026-09-18T17:30:10.133360774Z","cvss":{"score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"@file-viewer/doc","fixedVersion":"2.3.1"},{"ecosystem":"npm","name":"msdoc-viewer","fixedVersion":"0.2.2"}],"fix":{"url":"https://github.com/flyfish-dev/file-viewer/commit/ef045680f8d9830a3eee9612f7df46a734361b07","label":"flyfish-dev/file-viewer@ef04568"},"references":[{"type":"WEB","url":"https://github.com/flyfish-dev/file-viewer/security/advisories/GHSA-3753-m2x2-q623"},{"type":"WEB","url":"https://github.com/flyfish-dev/file-viewer/commit/ef045680f8d9830a3eee9612f7df46a734361b07"},{"type":"PACKAGE","url":"https://github.com/flyfish-dev/file-viewer"},{"type":"WEB","url":"https://github.com/flyfish-dev/file-viewer/releases/tag/v2.3.1"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-18T17:30:10.133360774Z"}}