CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-107718

CVE-2026-107718: Open Redirect Vulnerability in @adonisjs/http-server

Alon Barad
Alon Barad
Software Engineer

Oct 9, 2026·6 min read·19 visits

Executive Summary (TL;DR)

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.

Vulnerability Overview

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.

Root Cause Analysis

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.

Code Patch Analysis

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.

Exploitation & Attack Path

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.

Security Impact & Risks

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.

Mitigation & Defensive Strategy

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.

Official Patches

AdonisJSOfficial Security Advisory

Fix Analysis (2)

Technical Appendix

CVSS Score
6.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected Systems

AdonisJS Applications utilizing @adonisjs/http-server

Affected Versions Detail

Product
Affected Versions
Fixed Version
@adonisjs/http-server
AdonisJS
< 8.2.38.2.3
@adonisjs/http-server
AdonisJS
>= 9.0.0, < 9.3.09.3.0
AttributeDetail
CWE IDCWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Attack VectorNetwork
CVSS Score6.1 (Medium)
EPSS ScoreN/A
Exploit StatusProof-of-Concept
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1566.002Spearphishing Link
Initial Access
CWE-601
URL Redirection to Untrusted Site ('Open Redirect')

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.

Vulnerability Timeline

Initial routing architecture improvements merged into main branch
2026-08-16
Vulnerability identified and resolved via patch commits
2026-08-23
AdonisJS releases patch versions 8.2.3 and 9.3.0
2026-08-24
Official Security Advisory published on GitHub
2026-10-08
CVE-2026-107718 assigned and recorded in NVD
2026-10-08

References & Sources

  • [1]GitHub Security Advisory GHSA-2m6q-8v3h-jqww
  • [2]NVD CVE-2026-107718 Detail
  • [3]CVE Record CVE-2026-107718
  • [4]Framework Release v8.2.3
  • [5]Framework Release v9.3.0
  • [6]Commit 4548a0631ce2ef1618f04c7b41465be42cad2f7d
  • [7]Commit ab607a2958327b6f0019d38f26081e431768877a

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 days ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
11 views•10 min read
•2 days ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
14 views•12 min read
•2 days ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read
•2 days ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
16 views•10 min read
•2 days ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
19 views•10 min read
•2 days ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
8 views•9 min read