Intel

AIKIDO-2026-266734

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

Denial of Service (DoS)GHSA-w65r-fqv6-q6w9 Published Jul 20, 2026

65

Medium Risk

This Affects:

JS@tinyhttp/send
1.2.1 - 2.2.6
Fixed in 2.2.7
Are you affected? Scan for Free

TL;DR

@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.

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() or res.download() on a route reachable by untrusted clients.

Background info

@tinyhttp/send is vulnerable to Denial of Service (DoS) in versions 1.2.1 - 2.2.6.

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform