Authentication Middleware Vulnerability in Hono's OAuth Providers
CVE-2026-81888
5.4MEDIUM
What is CVE-2026-81888?
The authentication middleware for Hono's oauth-providers, prior to version 0.8.6, allows for potential security issues due to its handling of OAuth login callbacks. Specifically, it accepts these callbacks even if the 'state' value is missing from both the client and server sides. This oversight bypasses the intended anti-CSRF protection, which should ensure that OAuth callbacks are legitimately initiated by genuine login attempts. Users are advised to update to the patched version, 0.8.6, to mitigate this vulnerability.
Affected Version(s)
@hono/oauth-providers < 0.8.6
