← Back to CVE Explorer

CVE-2026-40255

Full vulnerability record from the local CVENow database.

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.

Severity
MEDIUM
CVSS score
6.1 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-16 23:16:33.267000
Last modified
2026-10-26 00:10:00.150000
View original CVE JSON
{
  "id": "CVE-2026-40255",
  "sourceIdentifier": "[email protected]",
  "published": "2026-04-16T23:16:33.267",
  "lastModified": "2026-10-26T00:10:00.150",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "El Servidor HTTP de AdonisJS es un paquete para manejar solicitudes HTTP en el framework de AdonisJS. En las versiones de @adonisjs/http-server anteriores a la 7.8.1 y de la 8.0.0-next.0 a la 8.1.3, y en las versiones de @adonisjs/core anteriores a la 7.4.0, el método response.redirect().back() lee el encabezado Referer de la solicitud HTTP entrante y redirige a esa URL sin validar el host. Un atacante que puede influir en el encabezado Referer puede hacer que la aplicación redirija a los usuarios a un sitio externo malicioso. Esto afecta a todas las aplicaciones de AdonisJS que utilizan response.redirect().back() o response.redirect(’back’). Este problema ha sido solucionado en las versiones 7.8.1 y 8.2.0 y 7.4.0 de @adonisjs/core."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "adonisjs",
          "product": "http-server",
          "versions": [
            {
              "version": ">= 8.0.0-next.0, < 8.2.0",
              "status": "affected"
            },
            {
              "version": "< 7.8.1",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "adonisjs",
          "product": "http-core",
          "versions": [
            {
              "version": "< 7.4.0",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
          "baseScore": 6.1,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 2.7
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-04-17T18:42:55.549238Z",
          "id": "CVE-2026-40255",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-601"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:adonisjs:http-server:*:*:*:*:*:node.js:*:*",
              "versionEndExcluding": "7.8.1",
              "matchCriteriaId": "77440DDE-F846-4D3F-B8EE-6592F09C6B72"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:adonisjs:http-server:*:*:*:*:*:node.js:*:*",
              "versionStartExcluding": "8.0.0",
              "versionEndIncluding": "8.1.3",
              "matchCriteriaId": "4C3C876D-A1A4-4E64-9DB4-FF855A0449D7"
            }
          ]
        }
      ]
    },
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:adonisjs:core:*:*:*:*:*:node.js:*:*",
              "versionEndIncluding": "7.3.0",
              "matchCriteriaId": "587A4DBA-0A27-42AA-9DAE-8FB311B65313"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/adonisjs/http-server/commit/2008fb6cf4f6f1c0ca5797d57def4d93e1c3de08",
      "source": "[email protected]",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://github.com/adonisjs/http-server/releases/tag/v7.8.1",
      "source": "[email protected]",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "https://github.com/adonisjs/http-server/releases/tag/v8.2.0",
      "source": "[email protected]",
      "tags": [
        "Release Notes"
      ]
    },
    {
      "url": "https://github.com/adonisjs/http-server/security/advisories/GHSA-6qvv-pj99-48qm",
      "source": "[email protected]",
      "tags": [
        "Patch",
        "Vendor Advisory"
      ]
    }
  ]
}