Intel

AIKIDO-2026-618217

@tinyhttp/app is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-rqg5-h5qr-gp89 Published Aug 14, 2026

61

Medium Risk

This Affects:

JS@tinyhttp/app
0.0.1 - 3.0.10
Fixed in 3.0.11
Are you affected? Scan for Free

TL;DR

The default error handler in @tinyhttp/app writes error content to the HTTP response body without HTML-escaping and without setting a Content-Type or X-Content-Type-Options header. When an application places request-controlled data into an error message or passes such data to next(), that data is reflected and can executed as HTML by the browser. This produces reflected cross-site scripting under the framework's default configuration with no special setup. The fix escapes reflected output, sets an explicit content type, and sends a nosniff header.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application reflects request-controlled data through an error message or a value passed to next().

Background info

@tinyhttp/app is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 3.0.10.

How to fix this

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