Medium, CVSS 6.1npmAmendedPublished
@adonisjs/http-server has an Open Redirect vulnerability
CVE-2026-40255 · GHSA-6qvv-pj99-48qm
- Affected
- npm @adonisjs/core < 7.3.1
- Fixed in
- 7.3.1· Vendor fix available
- Issue
- Impact The response.redirect().back() method in @adonisjs/http-server is vulnerable to open redirects. The 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 (for example, by linking a user through an attacker-controlled page before a form submission) 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'). The vulnerability is classified as CWE-601: URL Redirection to Untrusted Site ('Open Redirect'). Patches This has been fixed in @adonisjs/http-server version 8.2.0. The back() method now validates the Referer header's host against the request's own Host header. Referrers from unrecognized hosts are rejected and the redirect falls back to / (or a developer-provided fallback URL). Applications that operate across multiple domains can configure…
Recommended action: Upgrade to 7.3.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.