漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Hono: ReDoS in CORS middleware via Access-Control-Request-Headers
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Vulnerability Type
CWE-1333
Vulnerability Title
honojs Hono 资源管理错误漏洞
Vulnerability Description
honojs Hono是honojs组织开源的一个轻量级的Web服务器框架。 honojs Hono 4.12.34之前版本存在资源管理错误漏洞,该漏洞源于内置CORS中间件hono/cors解析Access-Control-Request-Headers头时使用宽松正则表达式导致回溯,形成正则表达式拒绝服务(ReDoS),可能消耗CPU并阻塞请求处理,导致服务无响应。
CVSS Information
N/A
Vulnerability Type
N/A