Outline 添付PDFの保存型XSSで閲覧者のセッションを盗まれるおそれ
Summary
ワークスペースの編集権限を持つユーザーが、添付ファイルのリンク属性に悪意あるURLを仕込めます。文書を開いた閲覧者(管理者を含む)のブラウザで任意のスクリプトが実行され、セッション情報を盗まれるおそれがあります。影響を受けるのはOutlineで、1.10.0以降に修正されています。1.10.0より前のバージョンを利用している場合は速やかに更新してください。
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.
ワークスペースの編集権限を持つユーザーが、添付ファイルのリンク属性に悪意あるURLを仕込めます。文書を開いた閲覧者(管理者を含む)のブラウザで任意のスクリプトが実行され、セッション情報を盗まれるおそれがあります。影響を受けるのはOutlineで、1.10.0以降に修正されています。1.10.0より前のバージョンを利用している場合は速やかに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.10.0→ 1.10.0 |
1.10.0 |
Original description The description as published by the source.
Summary
A stored Cross-Site Scripting (XSS) vulnerability allows any workspace member with document edit rights to inject attacker-controlled URLs into attachment node attributes through the real-time collaboration channel. Because the PDF attachment NodeView renders href into a raw attribute without sanitizeUrl(), the payload executes for every viewer of the document — including admins — enabling session/cookie theft and full workspace takeover. A second sink in the downloadAttachment command executes javascript: URLs in the Outline origin via link.click(), bypassing the read-only-mode link protections.
Details
The attachment ProseMirror node schema declares href with no validation constraint:
- shared/editor/nodes/Attachment.tsx:36-42 — href: { default: null } (no validate).
- Persistence only round-trips the document through Node.fromJSON (server/commands/documentCollaborativeUpdater.ts:61-65); with no validate rule on href, arbitrary values (javascript:, data:text/html, attacker URLs) are accepted and stored.
The collaboration WebSocket authenticates users (server/collaboration/AuthenticationExtension.ts, JWT required) but applies no attribute sanitization to incoming Yjs updates (server/services/collaboration.ts).
Two unsanitized render sinks:
- shared/editor/components/PDF.tsx:106 — writes node.attrs.href raw into the DOM (no sanitizeUrl(), violating the project's own convention documented in AGENTS.md).
- shared/editor/nodes/Attachment.tsx:219-235 — downloadAtta…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline