@hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking
Summary
| CVE | CVE-2026-81888 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-31 21:17:52 UTC |
| Updated | 2026-09-01 15:17:31 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.4 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS: 0.001490000 probability, percentile 0.043730000 (date 2026-09-03)
Problem Types: CWE-352 | CWE-1275 | CWE-352 CWE-352: Cross-Site Request Forgery (CSRF) | CWE-1275 CWE-1275: Sensitive Cookie with Improper SameSite Attribute
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 5.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Honojs | @hono/oauth-providers | affected < 0.8.6 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/honojs/middleware/security/advisories/GHSA-fm3f-ch8h-qw8q | [email protected] | github.com | |
| github.com/honojs/middleware/releases/tag/%40hono%2Foauth-providers%400.8.6 | [email protected] | github.com | |
| github.com/honojs/middleware/commit/b37765f40b7bddb1d8fce39573b085222dea... | [email protected] | github.com | |
| github.com/honojs/middleware/pull/2040 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.