Skip to content
Medium 5.3

Missing `await` disables comment-mark redaction on public shares, leaking internal user IDs to unauthenticated viewers

GHSA-cxh6-3jv2-9xcp First seen on SecPulse

Summary

Affected: outline at commit 374f5ad4035e39903db1d968d3be9c7ed8adca2c (main, 2026-08-10).

Version note. package.json reads 1.9.1 at this commit, but the commit is ahead of the v1.9.1 release tag and the trees differ. Please reproduce against the SHA, not the tag.

Summary

`...

Affected packages

PackageAffected → Fixed
otherOutline
< 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.json reads 1.9.1 at this commit, but the commit is ahead of the v1.9.1 release 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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details