Skip to content
Heist/ feed
Back to feed
UnratedFix available

AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity

Type: advisorySources: OSV

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

Products
@adonisjs/http-server
Affected versions
Not specified
Fixed versions
8.2.2, 9.1.1
CVEs
CVE-2026-104150
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 19:14 UTC · Revision 1

Source evidence

AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity

core-osv · Original source

Published 15 Oct 2026, 20:09 UTC

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

osv:GHSA-524c-h47v-m3h8

@adonisjs/http-server

Fixed versions: 9.1.1

@adonisjs/http-server

Fixed versions: 8.2.2

Complete source record
{
  "id": "fb99aa14cf214185cb86bdf12b824521dc0e41cbb4a5e8cd1ffeb1274fe8e686",
  "url": "https://osv.dev/vulnerability/GHSA-524c-h47v-m3h8",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "AdonisJS HTTP Server: Uncontrolled Resource Consumption and Inefficient Regular Expression Complexity",
    "summary": "### 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 ro",
    "evidence": "osv:GHSA-524c-h47v-m3h8",
    "products": [
      {
        "name": {
          "value": "@adonisjs/http-server",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.1.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "@adonisjs/http-server",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "8.2.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "GHSA-524c-h47v-m3h8",
      "aliases": [
        "CVE-2026-104150",
        "GHSA-524c-h47v-m3h8"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "9.0.0"
                },
                {
                  "fixed": "9.1.1"
                }
              ]
            }
          ],
          "package": {
            "name": "@adonisjs/http-server",
            "purl": "pkg:npm/%40adonisjs/http-server",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-524c-h47v-m3h8/GHSA-524c-h47v-m3h8.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8.2.2"
                }
              ]
            }
          ],
          "package": {
            "name": "@adonisjs/http-server",
            "purl": "pkg:npm/%40adonisjs/http-server",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-524c-h47v-m3h8/GHSA-524c-h47v-m3h8.json",
            "last_known_affected_version_range": "<= 8.2.1"
          }
        }
      ],
      "modified": "2026-10-15T20:30:04.348211874Z",
      "provider": "osv",
      "references": [
        "https://github.com/adonisjs/http-server/security/advisories/GHSA-524c-h47v-m3h8",
        "https://github.com/adonisjs/http-server/commit/86af38ca861528f673dcac6a4806197de038d1f7",
        "https://github.com/adonisjs/http-server/commit/d8c749aa9f66d5d214bad1cad727264aef4be727",
        "https://github.com/adonisjs/http-server",
        "https://github.com/adonisjs/http-server/releases/tag/v8.2.2",
        "https://github.com/adonisjs/http-server/releases/tag/v9.1.1"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333",
          "CWE-400"
        ],
        "severity": "MODERATE",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2026-10-15T20:09:52Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-104150",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 336039,
  "published_at": "2026-10-15T20:09:52+00:00"
}