@tinyhttp/send is vulnerable to Denial of Service (DoS)
65
CVE Score
Medium
Denial of Service (DoS)
@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.
Upgrade the @tinyhttp/send library to the patch version.
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.
1.2.1 - 2.2.6
Fixed in 2.2.7@tinyhttp/send is vulnerable to Denial of Service (DoS) in versions 1.2.1 - 2.2.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.