npm
CVE-2026-54290
hono: CORS Middleware reflects any Origin with credentials when `origin` defaults to the wildcard
- Severity
- High 7.1
- Published
- 16 Jun 2026
- Last changed
- 10 Sept 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 4.12.25
- Exploit chance
- 0.3% in the next 30 daysHigher than 26% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N- Also known as
- GHSA-88fw-hqm2-52qc
- Sources
- OSV.dev and GitHub
Description
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.
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.
Any third-party page a logged-in user visits can read the application's cookie-authenticated endpoints and perform credentialed state-changing requests.
Affected software
| Software | Affected versions |
|---|---|
hononpm · osv:npm:hono |
|
About hono
- Weekly downloads (npm)
- 108,805,821npm, 16 Nov 2026
Vulnerabilities in hono
- In our list
- 26
- Published in the last 12 months
- 26
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-109955Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static pathsMedium 5.3 20 Oct 2026
- CVE-2026-93981hono/jsx renders plain strings unescaped in boundary components, leading to XSSMedium 4.7 30 Sept 2026
- CVE-2026-84365Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directoryMedium 6.5 8 Sept 2026
- CVE-2026-84364Hono: Unbounded dot-notation nesting in `parseBody()` can cause memory exhaustionMedium 5.3 8 Sept 2026
- CVE-2026-84363Hono: Query parser reads parameters after the URL fragment, causing cache-key and proxy interpretation differentialsMedium 5.9 8 Sept 2026
- CVE-2026-71850Hono: `memo()` retains SSR output across requests, leading to cross-user data disclosureMedium 4.8 7 Aug 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54290
- GitHub Advisory Database https://github.com/advisories/GHSA-88fw-hqm2-52qc