Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-6qvv-pj99-48qm

Опубликовано: 14 апр. 2026
Источник: github
Github: Прошло ревью
CVSS3: 6.1

Описание

@adonisjs/http-server has an Open Redirect vulnerability

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

Пакеты

Наименование

@adonisjs/http-server

npm
Затронутые версииВерсия исправления

>= 8.0.0-next.0, < 8.2.0

8.2.0

Наименование

@adonisjs/core

npm
Затронутые версииВерсия исправления

< 7.3.1

7.3.1

Наименование

@adonisjs/http-server

npm
Затронутые версииВерсия исправления

< 7.8.1

7.8.1

EPSS

Процентиль: 16%
0.00248
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-601

Связанные уязвимости

CVSS3: 6.1
nvd
4 месяца назад

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.

msrc
4 месяца назад

@adonisjs/http-server has an Open Redirect vulnerability

EPSS

Процентиль: 16%
0.00248
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-601