Intel

AIKIDO-2026-266734

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

GHSA-w65r-fqv6-q6w9Published Jul 20, 2026
July 20, 2026

65

CVE Score

Medium

Denial of Service (DoS)

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.

How do I fix this?

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

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.

Versions

1.2.1 - 2.2.6

Fixed in 2.2.7

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea