{"id":"CVE-2026-69207","aliases":["CVE-2026-69207","GHSA-8j4g-w8fx-2239"],"related":[],"kind":"vulnerability","state":"published","title":"Hono: ReDoS in CORS middleware via Access-Control-Request-Headers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe built-in CORS middleware (`hono/cors`) parses the attacker-controlled `Access-Control-Request-Headers` request header during a preflight (`OPTIONS`) request using a regular expression whose running time is quadratic in the input length. A single request carrying a long run of whitespace can consume seconds of CPU, and repeated requests can render the service unresponsive. This parsing runs under the default configuration.\n\n### Details\n\nOn a CORS preflight, when `allowHeaders` is not configured - the default - the middleware reflects and parses the `Access-Control-Request-Headers` value. The parser used a whitespace-tolerant regular expression whose backtracking makes the work grow quadratically (O(n²)) with the length of the value when it contains a long whitespace sequence without a delimiter.\n\nBecause the header value is bounded only by the deployment's maximum HTTP header size, a single preflight can block request processing for a noticeable amount of time; on runtimes that share one execution thread across requests, this stalls concurrent requests as well. No authentication, special origin, or user interaction is required.\n\nThis issue arises for any application using `cors()` with the default (or an empty) `allowHeaders`. Applications that set a non-empty `allowHeaders` do not reach the affected path.\n\n### Impact\n\nAn unauthenticated attacker can send preflight requests that each consume disproportionate CPU relative to their size, degrading or denying service. This is a denial-of-service issue only; it does not expose or modify data.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.34, el middleware CORS incorporado, hono/cors, es vulnerable a una denegación de servicio por expresión regular (ReDoS). Durante una solicitud OPTIONS de pre-vuelo, el middleware analiza el encabezado Access-Control-Request-Headers controlado por el atacante utilizando una expresión regular tolerante a espacios en blanco cuyo retroceso hace que su tiempo de ejecución sea cuadrático en la longitud de la entrada. Debido a que el valor del encabezado está limitado solo por el tamaño máximo del encabezado HTTP de la implementación, un único pre-vuelo que contenga una larga secuencia de espacios en blanco puede consumir segundos de CPU y bloquear el procesamiento de solicitudes. En entornos de ejecución que comparten un hilo de ejecución entre solicitudes, esto también detiene las solicitudes concurrentes, y las solicitudes repetidas pueden hacer que el servicio no responda. Esto afecta la configuración predeterminada, ya que la ruta vulnerable se alcanza siempre que se utiliza cors() con un allowHeaders no establecido o vacío. Las aplicaciones que establecen un allowHeaders no vacío no se ven afectadas. Este problema está solucionado en la versión 4.12.34.","source":"nvd"}],"published":"2026-08-03T20:23:30.000Z","modified":"2026-10-24T16:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"< 4.12.34","status":"affected"}],"vendor":"honojs","product":"hono","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.12.34"}],"ecosystem":"npm","package":"hono","purl":"pkg:npm/hono","source":"ghsa"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-8j4g-w8fx-2239","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/hono/commit/93fc250d8b4df58ea542cb945171de8013d5e6d5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/hono/releases/tag/v4.12.34","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/hono","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-10T13:33:06.679Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69207","url":"https://www.cve.org/CVERecord?id=CVE-2026-69207","licence":"CVE Terms of Use","modified":"2026-08-10T13:33:18.783Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8j4g-w8fx-2239","url":"https://github.com/advisories/GHSA-8j4g-w8fx-2239","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.583Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69207","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69207","licence":"Public domain","modified":"2026-10-24T16:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:31.891Z","epss":{"score":0.00488,"percentile":0.4363,"date":"2026-12-01T12:00:22.000Z"}}