Description
@hono/oauth-providers is Authentication middleware for Hono. Prior to version 0.8.6, the built-in social login providers accept an OAuth callback even when the `state` value is absent on both sides, so the anti-CSRF check passes for a callback that never came from a genuine login attempt. This defeats the `state`-based CSRF protection under default usage. Version 0.8.6 has a patch.
Published: 2026-08-31
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Login CSRF / Forced Account Linking
Action: Upgrade
AI Analysis

Impact

The OAuth middleware for Hono fails to verify the presence of the state token in callbacks when the token is omitted on both sides. This flaw means the anti‑CSRF check is bypassed, allowing an attacker to forge a login response and link a victim’s account to the attacker’s account without user consent. The weakness is a state‑validation bypass, covering abnormal request validation (CWE‑352) and improper authentication handling (CWE‑1275).

Affected Systems

Applications using the @hono/oauth-providers middleware version 0.8.5 or earlier are vulnerable. The vulnerability exists in the Honojs "@hono/oauth-providers" module; any project that imports this middleware and performs social login without strict state enforcement is affected. Versions 0.8.6 and above contain the fix.

Risk and Exploitability

With a CVSS score of 5.4 the flaw represents moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, implying no known large‑scale exploitation yet. Attackers can exploit this via a forged OAuth callback that is not linked to a legitimate user session, potentially forcing account linking or CSRF attacks against authorized users. The attack vector is web‑based, requiring the attacker to supply a crafted callback to the application’s OAuth redirect URI. The risk remains moderate until a broader exploit is observed.

Generated by OpenCVE AI on August 31, 2026 at 21:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the @hono/oauth-providers middleware to version 0.8.6 or later to ensure the state token is verified during OAuth callbacks
  • Configure OAuth endpoints to reject any callback lacking a valid state parameter, even if using earlier middleware versions as an additional safeguard
  • Monitor authentication logs for abnormal OAuth callback patterns that may indicate CSRF attempts, and review account linking activity for anomalies

Generated by OpenCVE AI on August 31, 2026 at 21:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fm3f-ch8h-qw8q @hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking
History

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Honojs
Honojs @hono/oauth-providers
Vendors & Products Honojs
Honojs @hono/oauth-providers

Mon, 31 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Description @hono/oauth-providers is Authentication middleware for Hono. Prior to version 0.8.6, the built-in social login providers accept an OAuth callback even when the `state` value is absent on both sides, so the anti-CSRF check passes for a callback that never came from a genuine login attempt. This defeats the `state`-based CSRF protection under default usage. Version 0.8.6 has a patch.
Title @hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking
Weaknesses CWE-1275
CWE-352
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}


Subscriptions

Honojs @hono/oauth-providers
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-01T14:59:01.902Z

Reserved: 2026-08-27T17:48:42.123Z

Link: CVE-2026-81888

cve-icon Vulnrichment

Updated: 2026-09-01T14:14:35.479Z

cve-icon NVD

Status : Deferred

Published: 2026-08-31T21:17:52.317

Modified: 2026-09-09T21:09:13.080

Link: CVE-2026-81888

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T14:16:30Z

Weaknesses
  • CWE-1275

    Sensitive Cookie with Improper SameSite Attribute

  • CWE-352

    Cross-Site Request Forgery (CSRF)