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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-601
- **Aliases:** GHSA-6qvv-pj99-48qm
- **Published:** 2026-04-14T20:01:28.000Z
- **Modified:** 2026-10-26T00:10:00.150Z

## Who should check

- Projects that depend on npm package @adonisjs/http-server (\>= 8.0.0-next.0, \< 8.2.0)
- Projects that depend on npm package @adonisjs/core (\< 7.3.1)
- Anyone running adonisjs http-server \>= 8.0.0-next.0, \< 8.2.0; \< 7.8.1
- Anyone running adonisjs http-core \< 7.4.0

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

## Affected and fixed versions

- npm `@adonisjs/http-server`: affected \>= 8.0.0-next.0, \< 8.2.0; fixed 8.2.0, 7.8.1 (osv)
- npm `@adonisjs/core`: affected \< 7.3.1; fixed 7.3.1 (osv)
- adonisjs http-server: \>= 8.0.0-next.0, \< 8.2.0; \< 7.8.1 (cvelist)
- adonisjs http-core: \< 7.4.0 (cvelist)

## Mitigation

- Upgrade @adonisjs/http-server to one of 8.2.0, 7.8.1 (or later in the same release line).
- Upgrade @adonisjs/core to 7.3.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-40255. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-40255.md
Affected: @adonisjs/http-server >= 8.0.0-next.0, < 8.2.0; @adonisjs/core < 7.3.1
Fixed in: 8.2.0, 7.8.1, 7.3.1

Steps:
1. Search this machine and project for @adonisjs/http-server (npm), @adonisjs/core (npm), adonisjs http-server, adonisjs http-core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-40255 being exploited?

There is no confirmed exploitation: CVE-2026-40255 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-40255?

Medium: CVSS 6.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-40255?

@adonisjs/http-server \>= 8.0.0-next.0, \< 8.2.0; @adonisjs/core \< 7.3.1.

### Is there a fix for CVE-2026-40255?

Yes. Fixed in 8.2.0, 7.8.1, 7.3.1. Upgrade @adonisjs/http-server to one of 8.2.0, 7.8.1 (or later in the same release line). Upgrade @adonisjs/core to 7.3.1 or later.

### How do I check if I'm affected by CVE-2026-40255?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-40255>
- patch: <https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08>
- other: <https://github.com/adonisjs/http-server/releases/tag/v7.8.1>
- other: <https://github.com/adonisjs/http-server/releases/tag/v8.2.0>
- other: <https://github.com/adonisjs/http-server>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-40255>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6qvv-pj99-48qm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-40255> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-40255>
