Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hono/oauth-providers
  4. ›
  5. CVE-2026-81888

CVE-2026-81888: @hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking

August 31, 2026

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.

References

  • github.com/advisories/GHSA-fm3f-ch8h-qw8q
  • github.com/honojs/middleware/commit/b37765f40b7bddb1d8fce39573b085222dea58c1
  • github.com/honojs/middleware/pull/2040
  • github.com/honojs/middleware/releases/tag/%40hono%2Foauth-providers%400.8.6
  • github.com/honojs/middleware/security/advisories/GHSA-fm3f-ch8h-qw8q
  • nvd.nist.gov/vuln/detail/CVE-2026-81888

Code Behaviors & Features

Detect and mitigate CVE-2026-81888 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.6

Fixed versions

  • 0.8.6

Solution

Upgrade to version 0.8.6 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1275: Sensitive Cookie with Improper SameSite Attribute
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

npm/@hono/oauth-providers/CVE-2026-81888.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 01 Sep 2026 00:17:32 +0000.