Vulnerabilities in pkg:npm/@adonisjs/http-server
PACKAGECVE-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.
pkg:npm/@adonisjs/http-server
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
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.
npm install @adonisjs/http-server@9.1.1
npm install @adonisjs/http-server@8.2.2
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
CVE-2026-104150 Affected AdonisJS HTTP Server Versions
2 component(s)| 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?
Which AdonisJS HTTP Server versions are affected?
What version fixes CVE-2026-104150?
Is @adonisjs/http-server affected?
What CWE is associated with CVE-2026-104150?
How can I check npm dependencies for CVE-2026-104150?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}