Intel

AIKIDO-2026-422403

@adonisjs/http-server is vulnerable to Open Redirect

Open RedirectGHSA-2m6q-8v3h-jqww Published Today

61

Medium Risk

This Affects:

JS@adonisjs/http-server
0.0.1 - 8.2.2
Fixed in 8.2.3
9.0.0 - 9.2.0
Fixed in 9.3.0
Are you affected? Scan for Free

TL;DR

The HTTP server's URL builder inserts route parameter values into generated URLs without encoding them. Because reserved characters such as slashes, question marks, hashes, and backslashes are preserved, user-controlled parameter values can alter the structure of the generated URL. When such a URL is used in a redirect response, a scheme-relative value redirects the browser to an external host. The fix passes ordinary and wildcard route parameters through encodeURIComponent so reserved characters are percent-encoded.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application builds URLs from routes whose parameters carry user controlled input that is then used to redirect the browser.

Background info

@adonisjs/http-server is vulnerable to Open Redirect in versions 0.0.1 - 8.2.2 and 9.0.0 - 9.2.0.

How to fix this

Upgrade the @adonisjs/http-server library to the patch version.