CVE-2026-40255 Details
Description
AdonisJS HTTP Server is a package for handling HTTP requests in the AdonisJS framework. In @adonisjs/http-server versions prior to 7.8.1 and 8.0.0-next.0 through 8.1.3, and @adonisjs/core versions prior to 7.4.0, the response.redirect().back() method reads the Referer header from the incoming HTTP request and redirects to that URL without validating the host.An attacker who can influence the Referer header can cause the application to redirect users to a malicious external site. This affects all AdonisJS applications that use response.redirect().back() or response.redirect('back'). This issue has been fixed in versions 7.8.1 and 8.2.0 and 7.4.0 of @adonisjs/core.
A vulnerability allowing open redirects has been identified in the AdonisJS HTTP Server package, specifically in versions prior to 7.8.1 and 8.0.0-next.0 through 8.1.3. Additionally, all AdonisJS applications using the response.redirect().back() method are affected. The issue arises because the back() method reads the Referer header without validating the host, allowing attackers to redirect users to malicious external sites. This vulnerability is present in all AdonisJS applications that utilize response.redirect().back() or response.redirect('back').
Users should upgrade to @adonisjs/http-server version 8.2.0 or @adonisjs/core version 7.4.0. If an immediate upgrade is not possible, avoid using response.redirect().back() in routes accessible to unauthenticated users or from pages that receive external traffic. Instead, redirect to a known safe path using response.redirect().toPath('/dashboard').
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| adonisjs http-server | < 7.8.1 > 8.0.0, <= 8.1.3 |
CPE
Remediation
| |
| adonisjs core | <= 7.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 16, 2026 | New CVE Received | [email protected] |