CVE-2026-54290
JSON

7.1high

Hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcard

Severity
7.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-88fw-hqm2-52qc

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.

Affected

Product or packageVersionsReported by
honojs hono< 4.12.25CVE List
hono (npm)before 4.12.25GitHub Advisory Database

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Classification

CWE-942

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

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.

Details

The spec forbids Access-Control-Allow-Origin: * with credentials and browsers reject it, so this configuration used to fail closed. In affected versions the middleware reflects the request Origin instead, so it now succeeds for every origin, including null. The preflight also echoes the requested headers back, approving non-simple credentialed requests too.

This issue arises when an application enables credentials: true and leaves origin unset or set to the wildcard.

Impact

Any third-party page a logged-in user visits can read the application's cookie-authenticated endpoints and perform credentialed state-changing requests. This affects applications that enable credentialed CORS without restricting origin.

NVD (es)

Hono es un framework de aplicación web que proporciona soporte para cualquier entorno de ejecución de JavaScript. Antes de la versión 4.12.25, con credentials: true y sin un origen explícito (el comodín predeterminado), el Middleware CORS refleja el Origin de la solicitud y envía Access-Control-Allow-Credentials: true. Cualquier sitio puede entonces realizar solicitudes de origen cruzado con credenciales y leer las respuestas, exponiendo puntos finales autenticados por cookie a orígenes arbitrarios. Esta vulnerabilidad se corrige en la versión 4.12.25.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54290 changed 2026-06-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-88fw-hqm2-52qc changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54290 changed 2026-10-25Public domain