@tinyhttp/send is vulnerable to Denial of Service (DoS)
65
Medium Risk
@tinyhttp/send parses the HTTP Range header in res.sendFile() and res.download() with a hand-rolled parser that does not validate the start and end offsets. A request carrying an inverted or malformed range such as bytes=10-5 produces a negative Content-Length and an invalid read-stream range. The resulting stream error is not handled, so a single crafted request throws an uncaught exception and crashes the Node.js process, taking the server down. The fix delegates range parsing to header-range-parser, returning 416 for unsatisfiable ranges and avoiding the negative length and crash.
You are affected if you are using a version that falls within the vulnerable range and your application serves files with res.sendFile() or res.download() on a route reachable by untrusted clients.
@tinyhttp/send is vulnerable to Denial of Service (DoS) in versions 1.2.1 - 2.2.6.
Upgrade the @tinyhttp/send 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