@tinyhttp/app is vulnerable to Denial of Service (DoS)
65
Medium Risk
res.sendFile() parses the request Range header with a hand-rolled parser that does not reject inverted or malformed ranges such as bytes=10-5. Such a range produces a negative Content-Length, and the resulting stream error reaches the default error handler, which tries to write headers after they were already sent and crashes the Node.js process. A single unauthenticated request can therefore take the whole server down. The fix parses ranges with header-range-parser, returns 416 for unsatisfiable ranges before writing headers, and stops the default error handler from writing once headers are sent.
You are affected if you are using a version that falls within the vulnerable range and your application serves files with res.sendFile().
@tinyhttp/app is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 3.0.8.
Upgrade the @tinyhttp/app library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant