CVE-2026-123353: Docmost: Race condition (TOCTOU) in space/workspace role management allows permanent, irreversible admin/owner lockout
Docmost is open-source collaborative wiki and documentation software. Prior to 0.96.0, two concurrent role-demotion requests from a space admin or workspace owner can each pass the last-admin or last-owner count check before either update is committed because the validation and role update are not serialized in one transaction. The requests can therefore demote the final two space admins or workspace owners and leave the affected space without an admin or the workspace without an owner, preventing normal administrative recovery. This issue is fixed in version 0.96.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.96.0
Event History
Frequently Asked Questions
Which deployments are affected?
Docmost versions prior to 0.96.0 are affected. The issue applies to both space administrator role management and workspace owner role management.
What does an attacker need to exploit this issue?
The attacker needs administrative privileges: a space admin can trigger the space-admin scenario, and a workspace owner can trigger the workspace-owner scenario. Exploitation also requires two role-demotion requests to be made concurrently.
What is the operational impact if exploitation succeeds?
The final two space admins or workspace owners can be demoted, leaving a space with no admin or a workspace with no owner. Normal administrative recovery is then prevented, and the lockout is described as permanent and irreversible.
How can this be remediated?
Upgrade Docmost to version 0.96.0, which fixes the issue by addressing the race between validation and role updates.