GHSA-xx9g-fh25-4q64

Suggest an improvement
Source
https://github.com/advisories/GHSA-xx9g-fh25-4q64
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-xx9g-fh25-4q64/GHSA-xx9g-fh25-4q64.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xx9g-fh25-4q64
Aliases
Published
2026-02-06T19:53:55Z
Modified
2026-02-07T00:56:26Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
AdonisJS vulnerable to Denial of Service (DoS) via Unrestricted Memory Buffering in PartHandler during File Type Detection
Details

Summary

A Denial of Service (DoS) vulnerability (CWE-400) exists in the multipart file handling logic of @adonisjs/bodyparser. When processing file uploads, the multipart parser may accumulate an unbounded amount of data in memory while attempting to detect file types, potentially leading to excessive memory consumption and process termination.

This issue affects applications that accept multipart/form-data uploads using affected versions of @adonisjs/bodyparser.

Details

AdonisJS parses multipart/form-data requests using the BodyParser package. During file uploads, the multipart parser attempts to detect the uploaded file type by accumulating incoming chunks in an internal buffer to perform magic number detection.

The internal buffer used for this detection does not enforce a maximum size and is not protected by a timeout or early termination condition. If the uploaded data does not match any supported file signatures, the buffer continues to grow as more chunks are received.

When certain configurations are used, such as deferred validations or permissive file size limits, this buffering behavior may persist for the duration of the upload stream.

Impact

Exploitation requires a reachable endpoint that accepts multipart file uploads.

An attacker can send a specially crafted multipart request containing a large or unbounded stream of data that does not match known file signatures. This may cause the server to continuously allocate memory until the Node.js process exhausts available RAM and terminates due to an out-of-memory condition.

This results in a Denial of Service, making the application unavailable to legitimate users. Authentication is not required if the upload endpoint is publicly accessible.

Patches

Fixes targeting v6 and v7 have been published below.

Users should upgrade to a version that includes the following fix:

Database specific
{
    "cwe_ids":  [
        "CWE-400",
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-06T19:53:55Z",
    "nvd_published_at":  "2026-02-06T23:15:54Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @adonisjs/bodyparser

Package

Name
@adonisjs/bodyparser
View open source insights on deps.dev
Purl
pkg:npm/%40adonisjs/bodyparser

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
10.1.3

Database specific

last_known_affected_version_range
"<= 10.1.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-xx9g-fh25-4q64/GHSA-xx9g-fh25-4q64.json"

npm / @adonisjs/bodyparser

Package

Name
@adonisjs/bodyparser
View open source insights on deps.dev
Purl
pkg:npm/%40adonisjs/bodyparser

Affected ranges

Type
SEMVER
Events
Introduced
11.0.0-next.0
Fixed
11.0.0-next.9

Database specific

last_known_affected_version_range
"<= 11.0.0-next.8"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-xx9g-fh25-4q64/GHSA-xx9g-fh25-4q64.json"