HIGHCVSS v4 8.7Vulnerability

CVE-2026-104150

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

Properties

Severity
medium
Summary
AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity
Nvd fetched at
2026-10-20T21:14:08.448323+00:00
Cvss severity
HIGH
Cvss score
8.7
Epss score
0.00367
Retrieved at
2026-10-21T01:24:48+00:00
Ghsa published
2026-10-15T20:09:52Z
Source url
https://github.com/advisories/GHSA-524c-h47v-m3h8
Ghsa updated
2026-10-15T20:09:53Z
Ghsa id
GHSA-524c-h47v-m3h8
Last source
FIRST EPSS
Cvss version
4.0
Score
8.7
Cve id
CVE-2026-104150
Cvss vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-10-15T22:56:51+00:00
Is ghsa only
false
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published at
2026-10-15T19:17:14.603

Related Entities (4)

AFFECTS (1)

VULNERABLE_TO (1)

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-104150 (CVSS v4 8.7) — Ninja Signal Threat Intelligence | Ninja Signal