Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, with credentials: true and no explicit origin (the default wildcard), the CORS Middleware reflects the request's Origin and sends Access-Control-Allow-Credentials: true. Any site can then make credentialed cross-origin requests and read the responses, exposing cookie-authenticated endpoints to arbitrary origins. This vulnerability is fixed in 4.12.25.
Published: 2026-06-22
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in the CORS middleware of the Hono web framework. When credentials are enabled and no origin is specified, the middleware echoes the request’s Origin header and returns Access‑Control‑Allow‑Credentials: true. This behavior allows any third‑party origin to send authenticated browser requests to cookie‑based endpoints and read the returned data, effectively exposing privileged user content to arbitrary origins. The flaw corresponds to CWE‑942, which represents improper input validation in a cross‑origin communications context.

Affected Systems

The vulnerability affects the Hono web framework, with all releases prior to 4.12.25 susceptible. The product is identified as honojs:hono and all versions before 4.12.25 are impacted.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity. The EPSS score is not available and the issue is not listed in the CISA KEV catalog. Attackers can remotely exploit the weakness from any webpage by enabling credentials in fetch or XMLHttpRequest without an explicit origin, resulting in credentialed cross‑origin requests that read cookie‑authenticated responses. The attack requires only a malicious site and no privileged access, making exploitation trivial for attackers and posing a significant risk to end users whose browsers send credentials to the vulnerable Hono service.

Generated by OpenCVE AI on June 22, 2026 at 18:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Hono to version 4.12.25 or later to receive the patch that disables reflecting wildcards for untrusted origins.
  • If a patch cannot be applied immediately, configure the CORS middleware to specify trusted origins explicitly instead of relying on the default wildcard value.
  • If the application requires credentialed cross‑origin requests, restrict them to known origins or disable credentials entirely unless absolutely necessary.

Generated by OpenCVE AI on June 22, 2026 at 18:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-88fw-hqm2-52qc hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcard
History

Mon, 22 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 22 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Description Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, with credentials: true and no explicit origin (the default wildcard), the CORS Middleware reflects the request's Origin and sends Access-Control-Allow-Credentials: true. Any site can then make credentialed cross-origin requests and read the responses, exposing cookie-authenticated endpoints to arbitrary origins. This vulnerability is fixed in 4.12.25.
Title Hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcard
Weaknesses CWE-942
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-22T17:26:12.791Z

Reserved: 2026-06-12T17:46:37.293Z

Link: CVE-2026-54290

cve-icon Vulnrichment

Updated: 2026-06-22T17:26:07.140Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-22T18:45:04Z

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains