ZeroHour

CVE-2026-89022

moderate

Authentication Bypass via Social Login in BookStack before 26.05.5

CVSS 4.0
9.1 critical
EPSS
Published
()
Modified
AI analysis

BookStack versions before 26.05.5 contain an authentication bypass (CWE-290) in the social login implementation: the SocialAuthService::handleLoginCallback lookup matches a linked social account on the user ID alone and ignores the driver column. An unauthenticated attacker who authenticates at any enabled social provider using an ID that collides with an account linked to a different provider is signed in as that BookStack user, bypassing credential verification entirely. Successful exploitation gives full access to the targeted victim's account, including any documents, drafts, and permissions that user holds, up to and including admin accounts. Instances are only exposed if two or more social authentication providers sharing the same driver_id namespace are enabled (for example multiple OAuth providers). No public proof-of-concept exists and the flaw is not in CISA's KEV catalog, so exploitation is currently assessed as none known.

What to do: Upgrade to BookStack 26.05.5 or later, which fixes the driver-scoped lookup in SocialAuthService::handleLoginCallback. If immediate patching is not possible, disable social login entirely or reduce it to a single enabled provider so no cross-provider driver_id collision is possible. Audit the oauth_access_tokens/social account links in the database for unexpected provider associations and review authentication logs for logins via providers a user never legitimately used.

Affected
BookStackbefore 26.05.5
Estimated exposure
moderate≈ low thousands of internet-exposed self-hosted BookStack instances, with a smaller exploitable subset running multiple social login providers — BookStack is a self-hosted wiki whose public internet-scanner fingerprints typically show on the order of a few thousand exposed hosts, and only deployments with more than one social auth provider enabled are actually exploitable.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

BookStack before 26.05.5 contains an authentication bypass vulnerability in its social login implementation that allows unauthenticated attackers to sign in as arbitrary users by authenticating through a different social provider sharing the same driver_id namespace. Attackers can authenticate at one enabled social provider using a user ID that matches an account linked to a different social provider, bypassing credential verification entirely because the SocialAuthService::handleLoginCallback query ignores the driver column when retrieving linked account records.

Weakness
CWE-290
Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.