---
id: CVE-2026-81888
title: '@hono/oauth-providers is Authentication middleware for Hono'
summary: >-
  @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
  ca…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'
cwe:
  - CWE-352
  - CWE-1275
vendor: hono
product: '@hono/oauth-providers'
affected:
  - '@hono/oauth-providers < 0.8.6'
patched:
  - '@hono/oauth-providers 0.8.6'
published: '2026-08-31'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:09:13.080'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-81888'
references:
  - url: >-
      https://github.com/honojs/middleware/commit/b37765f40b7bddb1d8fce39573b085222dea58c1
    label: security-advisories@github.com
  - url: 'https://github.com/honojs/middleware/pull/2040'
    label: security-advisories@github.com
  - url: >-
      https://github.com/honojs/middleware/releases/tag/%40hono%2Foauth-providers%400.8.6
    label: security-advisories@github.com
  - url: >-
      https://github.com/honojs/middleware/security/advisories/GHSA-fm3f-ch8h-qw8q
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-fm3f-ch8h-qw8q'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00191
epssPercentile: 0.07838
aliases:
  - GHSA-fm3f-ch8h-qw8q
ecosystem: npm
ingestedAt: '2026-08-31T21:14:21.293Z'
---

## Overview

@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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-81888)

Affected packages:

- `@hono/oauth-providers < 0.8.6`

Patched in:

- `@hono/oauth-providers 0.8.6`

Source: https://github.com/advisories/GHSA-fm3f-ch8h-qw8q
