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

Medium 6.1 Published Updated

Attackers can redirect users to malicious sites via unvalidated Referer headers in AdonisJS HTTP Server redirect methods.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-40255?

CVE-2026-40255 is a medium-severity vulnerability in adonisjs http-core, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-601

Which versions are affected by CVE-2026-40255?

6 open source packages ship an affected version, including @adonisjs/http-server and @adonisjs/core. It affects 2 products.

PackageAffectedFixed in
@adonisjs/http-server npmAll versions7.8.1
@adonisjs/http-server npmAll versions7.8.1
@adonisjs/http-server npmFrom 8.0.0-next.08.2.0
@adonisjs/http-server npmFrom 8.0.0-next.08.2.0
@adonisjs/core npmAll versions7.3.1
@adonisjs/core npmAll versions7.3.1

Products include Adonisjs Core, Adonisjs Http-Server.

How do I fix CVE-2026-40255?

Upgrade @adonisjs/http-server to a fixed version for your release line: 7.8.1 or 8.2.0.

Is CVE-2026-40255 being exploited?

There is no known exploitation of CVE-2026-40255 in the wild and no public exploit code.

Sources

Also known as GHSA-6qvv-pj99-48qm.

Is CVE-2026-40255 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free