Medium · 6.1 Microsoft GHSA-2m6q-8v3h-jqww CVE-2026-107718
AdonisJS HTTP Server Open Redirect Vulnerability (CVE-2026-107718)
AdonisJS HTTP Server fails to properly encode route parameters before inserting them into generated URLs, allowing attacker-controlled input to produce open redirects to external sites. Fixed in versions 8.2.3 and 9.3.0.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been identified in @adonisjs/http-server, the HTTP handling package used by the AdonisJS framework. The issue allows attacker-controlled data to be used in a way that produces open redirects, which can be exploited for phishing or abuse of authentication flows. Patched versions are available.
What happened
AdonisJS HTTP Server, the package responsible for handling HTTP requests in the AdonisJS framework, was found to insert route parameter values into generated URLs without applying encodeURIComponent. This affects the shared createURL() helper used internally by Router.makeUrl() and by Response.redirect().toRoute(). As a result, applications that place attacker-controlled data into a dynamic first path segment and then use the generated route URL as a redirect destination can be manipulated into redirecting users to an external, attacker-controlled site.
Technical cause
The root cause is missing output encoding. When a route parameter value begins with a slash, the unencoded insertion into the URL can produce a scheme-relative URL that points to a different host rather than staying within the application. Wildcard parameters are affected by the same missing encoding. APIs that intentionally accept complete redirect URLs as input are not affected by this issue, since they are not subject to this specific encoding gap.
Why it matters
An attacker able to influence a dynamic route parameter that ends up in a generated redirect URL can redirect users away from a trusted application to a site under their control. This can be used for phishing or to interfere with authentication and OAuth flows, where redirect destinations are often trusted implicitly by users and sometimes by downstream systems.
Who is affected
Applications using the @adonisjs/http-server package are affected if they place attacker-controlled data into a dynamic first path segment and rely on the generated route URL as a redirect target. This includes usage through Router.makeUrl() and Response.redirect().toRoute(). Applications that only use APIs accepting fully specified redirect URLs are not affected by this particular issue.
Affected versions
For @adonisjs/http-server, versions from 0 up to (but not including) 8.2.3 are affected, as are versions from 9.0.0 up to (but not including) 9.3.0.
Fixes and mitigation
The issue is fixed in @adonisjs/http-server versions 8.2.3 and 9.3.0. No additional mitigation details beyond upgrading to these fixed versions were provided in the available facts.
Recommended action
Site owners and developers using @adonisjs/http-server should upgrade to version 8.2.3 (for the 8.x line) or 9.3.0 (for the 9.x line) as soon as practical. Review application code that builds redirect URLs from route parameters to confirm that attacker-controlled input is not used as a redirect target even after upgrading, as defense in depth.
PatchBriefing score
6.1 / 10 · Medium
Official CVSS: 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS 0.0039 (25 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- @adonisjs/http-server ≥ 0 < 8.2.3
- vulnerable
- ≥ 8.2.3
- patched
- ≥ 9.3.0
- patched
Reported fixes
The issue is fixed in @adonisjs/http-server versions 8.2.3 and 9.3.0. No additional mitigation details beyond upgrading to these fixed versions were provided in the available facts.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
OSV.dev database
-
NVD (NIST) database
-
Microsoft Security Update Guide vendor
Revision history
- Generated
- Published
- Generated