CVE-2026-107718

AdonisJS: Unencoded route parameters can produce open redirects

Published Oct 8, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. Prior to 8.2.3 and 9.3.0, AdonisJS HTTP Server inserts route parameter values into URLs without encodeURIComponent in the shared createURL() helper used by Router.makeUrl() and Response.redirect().toRoute(). If an application places attacker-controlled data in a dynamic first path segment and uses the generated route URL as a redirect destination, a value beginning with a slash can produce a scheme-relative external URL. Wildcard parameters are affected by the same missing encoding, while APIs intentionally accepting complete redirect URLs are not affected. An attacker can redirect users from a trusted application to an attacker-controlled site, facilitating phishing or abuse of authentication and OAuth flows. This issue is fixed in versions 8.2.3 and 9.3.0.

Analysis

AI-generated

Technical impact

AdonisJS HTTP Server accepts route parameter values and inserts them into URLs via a shared createURL() helper without applying encodeURIComponent. If a parameter begins with a slash, the resulting URL becomes scheme‑relative and can point to an external site. This flaw lets an attacker craft a URL that, when used by the framework’s redirect functions, causes a user’s browser to navigate away from the trusted application, enabling phishing or redirecting OAuth flows to malicious domains. The weakness is categorized as CWE‑601, i.e., Open Redirect.

Affected Systems

The vulnerability affects the AdonisJS HTTP Server package used in AdonisJS applications. Versions prior to 8.2.3 and prior to 9.3.0 are impacted. The package is identified by the CNA vendor name adonisjs and the product http‑server.

Risk and Exploitability

The CVSS score is 6.1, indicating a high impact potential when exploited. EPSS data is not available, so the current exploitation probability is unknown, and the vulnerability is not listed in the CISA KEV catalog. Because the flaw relies on developer‑controlled route parameters, it can be triggered whenever an attacker-controlled value is inserted into a dynamic first path segment that is subsequently used as a redirect destination. The lack of URL encoding provides a straightforward attack path that is easy to exploit without additional privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch that brings the application to version 8.2.3 or 9.3.0 of AdonisJS HTTP Server, which adds encodeURIComponent to route parameter handling.
  • If an immediate upgrade is not feasible, enforce input validation on all route parameters that are passed to redirect methods, ensuring they do not begin with a slash or contain characters that could form a fully qualified or scheme‑relative URL.
  • Configure the application to use a whitelist of allowed redirect URLs for any externally controlled redirects, rejecting or normalizing any URLs that are not in the whitelist.

Generated by OpenCVE AI on October 8, 2026 at 22:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2m6q-8v3h-jqww AdonisJS: Unencoded route parameters can produce open redirects
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Adonisjs
Adonisjs http-server
Vendors & Products Adonisjs
Adonisjs http-server
Type Values Removed Values Added
Description AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. Prior to 8.2.3 and 9.3.0, AdonisJS HTTP Server inserts route parameter values into URLs without encodeURIComponent in the shared createURL() helper used by Router.makeUrl() and Response.redirect().toRoute(). If an application places attacker-controlled data in a dynamic first path segment and uses the generated route URL as a redirect destination, a value beginning with a slash can produce a scheme-relative external URL. Wildcard parameters are affected by the same missing encoding, while APIs intentionally accepting complete redirect URLs are not affected. An attacker can redirect users from a trusted application to an attacker-controlled site, facilitating phishing or abuse of authentication and OAuth flows. This issue is fixed in versions 8.2.3 and 9.3.0.
Title AdonisJS: Unencoded route parameters can produce open redirects
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 14, 2026, 1:24 AM
Reserved
Oct 8, 2026, 5:21 PM
Status
Awaiting Analysis
Published
Oct 8, 2026, 10:17 PM
Modified
Oct 14, 2026, 2:16 AM
Severity
Moderate
Public date
Oct 8, 2026, 9:39 PM