| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| @tinyhttp_res@2.2.15 source code.tar.gz | 2026-08-10 | 370.0 kB | |
| @tinyhttp_res@2.2.15 source code.zip | 2026-08-10 | 507.9 kB | |
| README.md | 2026-08-10 | 830 Bytes | |
| Totals: 3 Items | 878.7 kB | 0 | |
Patch Changes
-
0d81969: fix: sanitize default error handler output (GHSA-rqg5-h5qr-gp89)
The default
onErrorHandlerreflected attacker-influenced error content (route params, query strings, cookies, etc.) byte-for-byte into the response body with no escaping and noContent-Type, which browsers could MIME-sniff as HTML and execute (reflected XSS).- Escape all reflected error content using the existing
escapeHTMLhelper. - Always set
Content-Type: text/plain; charset=utf-8andX-Content-Type-Options: nosniffon error responses. - Suppress raw error details when
NODE_ENV === 'production'.
escapeHTMLis now exported from@tinyhttp/resso it can be reused framework-wide. - Escape all reflected error content using the existing
-
Updated dependencies [e46a5cc]
- @tinyhttp/cookie-signature@2.1.2