Missing `await` disables comment-mark redaction on public shares, leaking internal user IDs to unauthenticated viewers
Summary
Affected: outline at commit 374f5ad4035e39903db1d968d3be9c7ed8adca2c (main, 2026-08-10).
Version note.
package.jsonreads1.9.1at this commit, but the commit is ahead of thev1.9.1release tag and the trees differ. Please reproduce against the SHA, not the tag.
Summary
`...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.10.0→ 1.10.0 |
1.10.0 |
Original description The description as published by the source.
Affected: outline at commit 374f5ad4035e39903db1d968d3be9c7ed8adca2c (main, 2026-08-10).
Version note.
package.jsonreads1.9.1at this commit, but the commit is ahead of thev1.9.1release tag and the trees differ. Please reproduce against the SHA, not the tag.
Summary
DocumentHelper.toJSON calls the async function ProsemirrorHelper.replaceInternalUrls without awaiting it. The resulting Promise is then passed to ProsemirrorHelper.removeMarks, which silently does nothing because a Promise does not have the shape it walks. Since toJSON is itself async, returning the Promise resolves it, and the caller receives a document with internal URLs rewritten and the marks that were supposed to be stripped still present.
The only caller that supplies both options is the public share branch of presentDocument. The redaction is therefore inert precisely where it is the sole protection: unauthenticated viewers of a public share receive the document's comment marks.
Root cause
server/models/helpers/DocumentHelper.tsx:177-185
if (options?.internalUrlBase) {
data = ProsemirrorHelper.replaceInternalUrls( // ← async, not awaited
data,
options.internalUrlBase
);
}
if (options?.removeMarks) {
data = ProsemirrorHelper.removeMarks(data, options.removeMarks); // ← receives a Promise
}
return data;
replaceInternalUrls is declared async (server/models/helpers/ProsemirrorHelper.tsx:420):
static async…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline