Outline 共有設定の不備で非公開文書の内容がメール通知される
Summary
Outline で、公開共有の購読者に、共有から見えない文書の題名や内容の差分がメールで届く問題が見つかりました。共有先の文書が下書きの場合や、購読後に共有範囲外へ移動された場合に起きます。影響を受けるのは 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.
Outline で、公開共有の購読者に、共有から見えない文書の題名や内容の差分がメールで届く問題が見つかりました。共有先の文書が下書きの場合や、購読後に共有範囲外へ移動された場合に起きます。影響を受けるのは 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
ShareSubscriptionNotificationsTask decides who gets emailed about a document edit by walking the document's parentDocumentId chain and checking share.includeChildDocuments. It never asks whether the document is inside the tree the share actually serves. Two everyday situations make those answers differ: an unpublished draft written under a shared parent, and a document moved out of the shared collection after someone subscribed. In both, the public share endpoints return 403 for that document while the notification pipeline mails its title and its full content diff to an anonymous subscriber.
This is an incomplete fix of 12c71f267, "Improve scoping of public share subscriptions". That commit added the includeChildDocuments guard with the comment "the updated document wouldn't be accessible", so the intended invariant is already written down. The guard tests document structure rather than share reachability, and the two diverge.
Details
server/queues/tasks/ShareSubscriptionNotificationsTask.ts:
const scopeIds: string[] = [document.id];
let parentId = document.parentDocumentId;
while (parentId) {
scopeIds.push(parentId);
const parent = await Document.findByPk(parentId, { attributes: ["id", "parentDocumentId"] });
if (!parent) { break; }
parentId = parent.parentDocumentId;
}
const subscriptions = await ShareSubscription.scope("active").findAll({
where: { documentId: scopeIds },
include: [{ model: Share.unscoped(), required: true,…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline