Vulnerabilities in pkg:npm/@adonisjs/http-server

PACKAGE
Advisory Identifier: GHSA-524c-h47v-m3h8
Advisory Summary

CVE-2026-104150 is a MODERATE remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting AdonisJS HTTP Server libraries in the npm ecosystem. The issue involves uncontrolled resource consumption and inefficient regular expression complexity. Remediation is available by upgrading affected packages to version 9.1.1, 8.2.2.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@adonisjs/http-server

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@adonisjs/http-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-524c-h47v-m3h8 CVE-2026-104150 MODERATE AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity
GHSA-2m6q-8v3h-jqww CVE-2026-107718 MODERATE AdonisJS: Unencoded route parameters can produce open redirects
GHSA-6qvv-pj99-48qm CVE-2026-40255 MODERATE @adonisjs/http-server has an Open Redirect vulnerability

CVE-2026-104150 at a Glance

CVE Identifier CVE-2026-104150
GHSA Identifier GHSA-524c-h47v-m3h8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product AdonisJS HTTP Server
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-104150

To remediate this vulnerability, upgrade all affected AdonisJS HTTP Server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@adonisjs/http-server fixed: 9.1.1
npm install @adonisjs/http-server@9.1.1
@adonisjs/http-server fixed: 8.2.2
npm install @adonisjs/http-server@8.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @adonisjs/http-server

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-104150, inspect your project dependencies using npm:

npm ls @adonisjs/http-server

Analyze the terminal output to locate any version of AdonisJS HTTP Server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.1.1), your application is affected.

Note: The npm ls @adonisjs/http-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In AdonisJS HTTP Server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Description A Regular Expression Denial of Service vulnerability in the built-in AdonisJS slug route matcher may allow a remote attacker to block the Node.js event loop using a specially crafted URL. This affects applications using `router.matchers.slug()` on a route parameter reachable by an attacker. ### Details The regular expression used by `router.matchers.slug()` contains adjacent greedy quantifiers with overlapping character classes: ```regex /^[^\s-_](?!.*?[-_]{2,})([a-z0-9-\\]{1,})[^\s]*[^-_\s]$/ ``` When the matcher receives a long string ending with a character rejected by the final assertion, the regular expression engine must evaluate many possible ways of dividing the input between the overlapping quantifiers before determining that it does not match. This results in quadratic execution time. Testing measured an approximate complexity of `O(n^1.98)`. Route matchers are evaluated against attacker-controlled URL segments during routing. Therefore, an unauthenticated attacker can trigger the vulnerable expression by sending a request to a route configured as follows: ```ts router .get('/posts/:slug', handler) .where('slug', router.matchers.slug()) ``` Routing occurs before route and group middleware. As a result, authentication or rate-limiting middleware attached to the affected route may not prevent exploitation. The vulnerability is limited to routes that explicitly use the built-in slug matcher. ### Impact Exploitation requires an application to expose a route using `router.matchers.slug()` with an attacker-controlled parameter. A specially crafted request can cause excessive CPU consumption and block the Node.js event loop. While the expression is being evaluated, the process cannot serve other requests, including requests to unrelated routes or health-check endpoints. Only a small number of requests may be required to consume the capacity of a worker. Reverse-proxy request-line limits reduce the maximum processing time of an individual request but do not fully mitigate the vulnerability. ### Patches Fixes targeting v6 and v7 have been published below. Users should upgrade to a version that includes the following fix: - https://github.com/adonisjs/http-server/releases/tag/v9.1.1 - https://github.com/adonisjs/http-server/releases/tag/v8.2.2

CVE-2026-104150 Affected AdonisJS HTTP Server Versions

2 component(s)
Fixed Versions:
9.1.18.2.2
Product / Package Ecosystem Affected Versions Fixed Version
@adonisjs/http-server
npm
≥ 9.0.0
< 9.1.1
9.1.1
@adonisjs/http-server
npm
< 8.2.2
8.2.2

References

Frequently Asked Questions

What is CVE-2026-104150?
CVE-2026-104150 is a security vulnerability in AdonisJS HTTP Server involving Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity under CWE-400: Uncontrolled Resource Consumption.
Which AdonisJS HTTP Server versions are affected?
Affected versions include releases prior to 9.1.1, 8.2.2 across affected packages: @adonisjs/http-server.
What version fixes CVE-2026-104150?
Upgrading to 9.1.1, 8.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @adonisjs/http-server affected?
Yes, @adonisjs/http-server is affected in releases prior to 9.1.1, 8.2.2. Upgrade your dependency to 9.1.1, 8.2.2 or later.
What CWE is associated with CVE-2026-104150?
CVE-2026-104150 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2026-104150?
Run the dependency tree command: 'npm ls @adonisjs/http-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-524c-h47v-m3h8",
  "modified" : "2026-10-15T20:09:52Z",
  "published" : "2026-10-15T20:09:52Z",
  "aliases" : [ "CVE-2026-104150" ],
  "summary" : "AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity",
  "details" : "### Description\n\nA Regular Expression Denial of Service vulnerability in the built-in AdonisJS slug route matcher may allow a remote attacker to block the Node.js event loop using a specially crafted URL.\n\nThis affects applications using `router.matchers.slug()` on a route parameter reachable by an attacker.\n\n### Details\n\nThe regular expression used by `router.matchers.slug()` contains adjacent greedy quantifiers with overlapping character classes:\n\n```regex\n/^[^\\s-_](?!.*?[-_]{2,})([a-z0-9-\\\\]{1,})[^\\s]*[^-_\\s]$/\n```\n\nWhen the matcher receives a long string ending with a character rejected by the final assertion, the regular expression engine must evaluate many possible ways of dividing the input between the overlapping quantifiers before determining that it does not match.\n\nThis results in quadratic execution time. Testing measured an approximate complexity of `O(n^1.98)`.\n\nRoute matchers are evaluated against attacker-controlled URL segments during routing. Therefore, an unauthenticated attacker can trigger the vulnerable expression by sending a request to a route configured as follows:\n\n```ts\nrouter\n  .get('/posts/:slug', handler)\n  .where('slug', router.matchers.slug())\n```\n\nRouting occurs before route and group middleware. As a result, authentication or rate-limiting middleware attached to the affected route may not prevent exploitation.\n\nThe vulnerability is limited to routes that explicitly use the built-in slug matcher.\n\n### Impact\n\nExploitation requires an application to expose a route using `router.matchers.slug()` with an attacker-controlled parameter.\n\nA specially crafted request can cause excessive CPU consumption and block the Node.js event loop. While the expression is being evaluated, the process cannot serve other requests, including requests to unrelated routes or health-check endpoints.\n\nOnly a small number of requests may be required to consume the capacity of a worker. Reverse-proxy request-line limits reduce the maximum processing time of an individual request but do not fully mitigate the vulnerability.\n\n### Patches\n\nFixes targeting v6 and v7 have been published below.\n\nUsers should upgrade to a version that includes the following fix:\n\n- https://github.com/adonisjs/http-server/releases/tag/v9.1.1\n- https://github.com/adonisjs/http-server/releases/tag/v8.2.2",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/http-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/http-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.2.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 8.2.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/http-server/security/advisories/GHSA-524c-h47v-m3h8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/http-server/commit/86af38ca861528f673dcac6a4806197de038d1f7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/http-server/commit/d8c749aa9f66d5d214bad1cad727264aef4be727"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/adonisjs/http-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/http-server/releases/tag/v8.2.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/http-server/releases/tag/v9.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-15T20:09:52Z",
    "nvd_published_at" : null
  }
}