GHSA-6qvv-pj99-48qm

Suggest an improvement
Source
https://github.com/advisories/GHSA-6qvv-pj99-48qm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-6qvv-pj99-48qm/GHSA-6qvv-pj99-48qm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6qvv-pj99-48qm
Aliases
  • CVE-2026-40255
Published
2026-04-14T20:01:28Z
Modified
2026-05-05T16:02:42.354824Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
@adonisjs/http-server has an Open Redirect vulnerability
Details

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 additional trusted hosts via the redirect.allowedHosts option in config/app.ts.

Users should upgrade to @adonisjs/http-server@^8.2.0 (or @adonisjs/core@^7.4.0 if using the core meta-package).

Workarounds

If upgrading is not immediately possible, avoid using response.redirect().back() in routes that are reachable by unauthenticated users or from pages that accept external traffic. Instead, redirect to a known safe path explicitly using response.redirect().toPath('/dashboard').

References

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-14T20:01:28Z",
    "cwe_ids": [
        "CWE-601"
    ],
    "severity": "MODERATE",
    "nvd_published_at": "2026-04-16T23:16:33Z"
}
References

Affected packages

npm / @adonisjs/http-server

Package

Name
@adonisjs/http-server
View open source insights on deps.dev
Purl
pkg:npm/%40adonisjs/http-server

Affected ranges

Type
SEMVER
Events
Introduced
8.0.0-next.0
Fixed
8.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-6qvv-pj99-48qm/GHSA-6qvv-pj99-48qm.json"

npm / @adonisjs/core

Package

Name
@adonisjs/core
View open source insights on deps.dev
Purl
pkg:npm/%40adonisjs/core

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-6qvv-pj99-48qm/GHSA-6qvv-pj99-48qm.json"

npm / @adonisjs/http-server

Package

Name
@adonisjs/http-server
View open source insights on deps.dev
Purl
pkg:npm/%40adonisjs/http-server

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.8.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-6qvv-pj99-48qm/GHSA-6qvv-pj99-48qm.json"