{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.8.6"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b37765f40b7bddb1d8fce39573b085222dea58c1"
            }
          ],
          "repo": "https://github.com/honojs/middleware",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-fm3f-ch8h-qw8q"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1275",
      "CWE-352"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81888.json"
  },
  "details": "@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.",
  "id": "CVE-2026-81888",
  "modified": "2026-09-11T03:30:59.992305744Z",
  "published": "2026-08-31T20:27:33.165Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/honojs/middleware/releases/tag/%40hono%2Foauth-providers%400.8.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81888.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/honojs/middleware/security/advisories/GHSA-fm3f-ch8h-qw8q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81888"
    },
    {
      "type": "FIX",
      "url": "https://github.com/honojs/middleware/commit/b37765f40b7bddb1d8fce39573b085222dea58c1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/honojs/middleware/pull/2040"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "@hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking"
}