Intel

AIKIDO-2026-877398

@tinyhttp/app is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-w65r-fqv6-q6w9 Published Yesterday

65

Medium Risk

This Affects:

JS@tinyhttp/app
2.0.0 - 3.0.8
Fixed in 3.0.9
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application serves files with res.sendFile().

Background info

@tinyhttp/app is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 3.0.8.

How to fix this

Upgrade the @tinyhttp/app library to the patch version.