← 漏洞与更新

中危漏洞公告JavaScript / Node.js

http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival

受影响

软件包受影响版本修复版本
npm:http-proxy-middleware>= 4.0.0-beta.0, <= 4.2.04.2.1
npm:http-proxy-middleware>= 3.0.5, <= 3.0.73.0.10
npm:http-proxy-middleware>= 2.0.9, <= 2.0.102.0.11

fixRequestBody treats req.readableLength === 0 as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body containing a complete second HTTP request. When a body-parser 1.x parser declined the declared media type, it has already assigned a truthy req.body but has not consumed the stream. fixRequestBody serializes that empt…

在 GitHub Advisory Database 阅读

2026/12/02 03:15,GitHub Advisory Database 发布了“http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:JavaScript / Node.js。CVE:CVE-2026-140103。