Vulnerability · Published Aug 7, 2026 · Assigned by GitHub_M
CVE-2026-69207Hono: ReDoS in CORS middleware via Access-Control-Request-Headers
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in hono from honojs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.34, the built-in CORS middleware, hono/cors, is vulnerable to a regular expression denial of service (ReDoS). During a preflight OPTIONS request, the middleware parses the attacker-controlled Access-Control-Request-Headers header using a whitespace-tolerant regular expression whose backtracking makes its running time quadratic in the input length. Because the header value is bounded only by the deployment's maximum HTTP header size, a single preflight carrying a long run of whitespace can consume seconds of CPU and block request processing. On runtimes that share one execution thread across requests, this stalls concurrent requests as well, and repeated requests can render the service unresponsive. This affects the default configuration, since the vulnerable path is reached whenever cors() is used with an unset or empty allowHeaders. Applications that set a non-empty allowHeaders are not affected. This issue is fixed in version 4.12.34.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | hono | 4.12.34 | GHSA-8j4g-w8fx-2239 |
Affected products (as reported)
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/honojs/hono/security/advisories/GHSA-8j4g-w8fx-2239 x_refsource_CONFIRM
- https://github.com/honojs/hono/commit/93fc250d8b4df58ea542cb945171de8013d5e6d5 x_refsource_MISC
- https://github.com/honojs/hono/releases/tag/v4.12.34 x_refsource_MISC