Oct 9, 2026·6 min read·16 visits
Unsanitized interpolation of route parameters in AdonisJS HTTP Server allows remote attackers to force protocol-relative redirects, directing users to external malicious domains.
CVE-2026-107718 is a medium-severity Open Redirect vulnerability in the core HTTP server package of the AdonisJS Node.js framework. Prior to versions 8.2.3 and 9.3.0, the framework built route paths by directly interpolating dynamic parameters and wildcard segments without URI encoding. If an application routes attacker-controlled input directly to a dynamic first path segment and uses the generated route URL as a redirect destination, a leading slash can produce a scheme-relative external URL. Modern web browsers process scheme-relative URLs by redirecting the client to the specified external domain, exposing users to credential harvesting, social engineering, and session hijacking. This vulnerability affects all applications running unpatched configurations where input validation is not explicitly implemented before generating paths.
The AdonisJS HTTP Server framework component manages HTTP routing, request parsing, and redirection mechanisms within the AdonisJS ecosystem. To facilitate rapid route navigation and dynamic path generation, the framework exposes helper utility methods such as Router.makeUrl() and Response.redirect().toRoute(). These helpers rely internally on a shared builder function called createURL() to dynamically interpolate variables into registered route patterns.
Prior to the release of patched versions, the framework failed to apply URI encoding to route parameter values before appending them to the generated URL path. This omission creates a direct attack surface in applications that pass untrusted input into dynamic path parameters of a route template, subsequently utilizing that generated path to redirect users. This pattern is common in post-authentication routing and multi-page form tracking.
An attacker can exploit this oversight by crafting dynamic parameter payloads starting with a forward slash. When processed, this injection leads to the generation of a protocol-relative URL string that points to an external destination. Modern web browsers interpret protocol-relative URLs as absolute destinations, transferring the client's session control to an attacker-controlled host.
The root cause of CVE-2026-107718 lies in the string construction logic within the createURL() helper function in src/client/helpers.ts. When resolving a named route, the function iterates over the parameters defined in the route pattern and substitutes placeholder tokens with developer-provided variables. During this substitution, the parameter values were appended directly as raw strings without validation or sanitization.
Under standard conditions, dynamic parameters represent local path segments, such as resource identifiers or category names. However, when the dynamic parameter is located at the first position of the route pattern, the lack of encoding presents a structural hazard. Under normal behavior, a route like /:page with parameter home resolves safely to /home.
When an input parameter starts with a forward slash, such as /evil.example.com, the dynamic replacement appends this raw string to the root path separator. The resulting path becomes //evil.example.com. In accordance with RFC 3986 section 4.2, a path beginning with two slashes is parsed as a network-path reference, or a scheme-relative URL. Modern user agents resolve such links using the base origin's active scheme, converting the local route redirect into a cross-origin redirect.
An analysis of the patch commits, specifically 4548a0631ce2ef1618f04c7b41465be42cad2f7d, reveals a correction of the interpolation mechanics in src/client/helpers.ts. The developers introduced native encodeURIComponent wrapper calls to process both standard dynamic parameters and wildcard parameters before they are integrated into the final URL string.
// Affected interpolation logic before the patch
if (isDefined) {
uriSegments.push(`${value}${token.end}`)
}// Patched interpolation logic enforcing URI encoding
if (isDefined) {
uriSegments.push(`${encodeURIComponent(String(value))}${token.end}`)
}For wildcard segments, the developers mapped the input array to ensure that each component is individually encoded before they are reconstructed using a safe join operation. This change ensures that dynamic elements cannot inject structural path separators. It prevents an attacker from supplying forward slashes to forge scheme-relative or absolute external links. Dynamic inputs containing slashes are neutralized to %2F, which forces the browser to evaluate the parameter strictly as a local directory resource on the original host.
To successfully exploit this vulnerability, the target application must utilize dynamic parameters as part of a route-generation sequence that terminates in an HTTP redirection. This pattern is often implemented in login, logout, or session routing parameters that direct users to a dynamic subpage post-execution.
During an active exploit attempt, an attacker distributes a crafted hyperlink targeting the vulnerable application's login handler. The link includes a payload in the redirection parameter pointing to a phishing website. When the user logs in, the backend computes the redirection URL using response.redirect().toRoute('pages.show', { page: user_provided_payload }). Because of the missing validation, the backend issues an HTTP 302 response with the Location: //malicious-phishing-host.com header. The user's browser automatically loads the phishing website under the assumption that it is a secure continuation of the original transaction.
The security impact of CVE-2026-107718 is classified as Medium, receiving a CVSS v3.1 score of 6.1. The primary risk associated with open redirection is the facilitation of highly convincing phishing campaigns. Because the initial URL points to a legitimate, trusted domain, security gateways, email filters, and trained users are likely to permit the traffic. The downstream redirect is executed automatically without presenting warning notices to the victim.
Beyond credential harvesting, this vulnerability poses risks to OAuth state configurations and single sign-on (SSO) integrations. If the application exposes a vulnerable redirection path that processes dynamic input, an attacker can hijack authentication response codes. This is achieved by redirecting the authentication callback parameter to an external server under their control.
Additionally, this bug can expose sensitive cookies, authorization headers, or referer headers. When the victim browser navigates to the malicious external domain, it may transmit contextual information from the trusted origin in the request headers, leading to potential session exposure.
The definitive remediation for CVE-2026-107718 is updating the @adonisjs/http-server dependency. For codebases built on the 8.x branch, upgrade the package to version 8.2.3 or later. For modern codebases built on the 9.x branch, upgrade the package to version 9.3.0 or later. This introduces the encoding mechanisms required to prevent parameter breakouts.
If immediate dependency updates are not feasible, you can deploy a Web Application Firewall (WAF) rule to block incoming request URIs that contain percent-encoded slashes (%2F) or backslashes (%5C) within routing parameters that are known to drive redirection logic. Developers should also implement strict whitelist validation on the application layer, validating that any redirect parameters resolve strictly to a predefined list of allowed internal paths.
> [!NOTE]
> It is recommended to perform post-upgrade testing. Run npm list @adonisjs/http-server to verify that no legacy, vulnerable versions of the package remain in your project's dependency tree, which can occur due to strict lockfile configurations.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
@adonisjs/http-server AdonisJS | < 8.2.3 | 8.2.3 |
@adonisjs/http-server AdonisJS | >= 9.0.0, < 9.3.0 | 9.3.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-601: URL Redirection to Untrusted Site ('Open Redirect') |
| Attack Vector | Network |
| CVSS Score | 6.1 (Medium) |
| EPSS Score | N/A |
| Exploit Status | Proof-of-Concept |
| CISA KEV Status | Not Listed |
The web application accepts a user-controlled input that specifies a link to an external site, and uses this link in a redirect, enabling spoofing and phishing attempts.
GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.
CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.
CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.
An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.
A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.
A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.