Intel

AIKIDO-2026-27767

@tinyhttp/res is vulnerable to Open Redirect

CVE-2026-85989Published Jul 20, 2026
July 20, 2026

43

CVE Score

Medium

Open Redirect

Are you affected? Scan for Free

TL;DR

The setLocationHeader helper used by res.redirect() and res.location() matches the scheme and authority of a URL with a regular expression that permits backslashes and only encodes the path portion. A user-controlled redirect target such as https://evil.com\@trusted.com is written to the Location header with the backslash left raw. Some URL parsers treat the backslash like a forward slash and resolve the destination to the attacker-controlled host, bypassing redirect allowlists and enabling phishing or OAuth code theft. The fix encodes the backslash to %5C while leaving the legitimate host verbatim, matching Express behavior.

How do I fix this?

Upgrade the @tinyhttp/res 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 passes user-controlled input to res.redirect() or res.location().

Versions

2.2.11 - 2.2.12

Fixed in 2.2.13

Background info

@tinyhttp/res is vulnerable to Open Redirect in versions 2.2.11 - 2.2.12.

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