GHSL-2026-040: Access Control Bypass in AFFINE
The WebSocket sync gateway in AFFiNE only checks workspace membership, not document-level permissions, so any workspace collaborator can read, modify, or delete any document. The maintainer stated this is currently by design.
AFFiNE v0.26.2 is vulnerable to an access control bypass (GHSL-2026-040), allowing workspace coworkers to modify any document within the workspace regardless of existing document access permissions.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A workspace coworker could read, modify and delete any document in the workspace regardless of their document-level permissions; the maintainer says this is currently by design.
What the attacker needed
A workspace collaborator account; access to the WebSocket sync gateway
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
AFFiNE is a collaborative workspace app where documents can have their own access rules. The real-time sync service that keeps documents up to date only checked that you belong to the workspace, not whether you were allowed to touch a particular document. So a normal workspace member could change documents they were not supposed to see or edit.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.