CVE-2026-25754: @adonisjs/bodyparser AdonisJS Multipart Body Parsing Has Vulnerability

HIGH
Advisory Identifier: GHSA-f5x2-vj4h-vg4c
CVSS 7.2
CWE-1321
Published
Advisory Summary

CVE-2026-25754 is a HIGH (CVSS 7.2) adonisjs multipart body parsing has vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @adonisjs/bodyparser libraries in the npm ecosystem. The issue involves adonisjs multipart body parsing has prototype pollution issue. Remediation is available by upgrading affected packages to version 10.1.3, 11.0.0-next.9.

CVE-2026-25754 at a Glance

CVE Identifier CVE-2026-25754
GHSA Identifier GHSA-f5x2-vj4h-vg4c
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @adonisjs/bodyparser
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-25754

To remediate this vulnerability, upgrade all affected @adonisjs/bodyparser 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/bodyparser fixed: 10.1.3
npm install @adonisjs/bodyparser@10.1.3
@adonisjs/bodyparser fixed: 11.0.0-next.9
npm install @adonisjs/bodyparser@11.0.0-next.9
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/bodyparser

How to Check if You Are Affected

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

npm ls @adonisjs/bodyparser

Analyze the terminal output to locate any version of @adonisjs/bodyparser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.1.3), your application is affected.

Note: The npm ls @adonisjs/bodyparser 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @adonisjs/bodyparser, 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 Prototype Pollution vulnerability (CWE-1321) in AdonisJS multipart form-data parsing may allow a remote attacker to manipulate object prototypes at runtime. This impacts `@adonisjs/bodyparser` through version `10.1.2` and `11.x` prerelease versions prior to `11.0.0-next.8`. This issue has been patched in `@adonisjs/bodyparser` versions `10.1.3` and `11.0.0-next.9` ### Details AdonisJS parses `multipart/form-data` requests via the BodyParser package. During multipart parsing, form field names are used to construct plain JavaScript objects representing the parsed request body. Due to insufficient validation of multipart field names, specially crafted fields containing reserved property names such as `__proto__`, `constructor`, or `prototype` could be assigned directly to objects created during parsing. This allows an attacker to pollute object prototypes, potentially affecting other parts of the application that rely on these objects. **The vulnerability is limited to multipart request parsing and does not affect JSON or URL-encoded body parsing.** ### Impact Exploitation requires an application endpoint that accepts and parses `multipart/form-data` requests. If exploited, prototype pollution may lead to unexpected application behavior, logic bypasses, or security issues depending on how polluted objects are later consumed. The severity of the impact depends on application logic and usage patterns of the parsed request data. ### 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/bodyparser/releases/tag/v10.1.3 - https://github.com/adonisjs/bodyparser/releases/tag/v11.0.0-next.9

CVE-2026-25754 Affected @adonisjs/bodyparser Versions

2 component(s)
Fixed Versions:
10.1.311.0.0-next.9
Product / Package Ecosystem Affected Versions Fixed Version
@adonisjs/bodyparser
npm
< 10.1.3
10.1.3
@adonisjs/bodyparser
npm
≥ 11.0.0-next.0
< 11.0.0-next.9
11.0.0-next.9

References

Frequently Asked Questions

What is CVE-2026-25754?
CVE-2026-25754 is a security vulnerability in @adonisjs/bodyparser involving AdonisJS multipart body parsing has Prototype Pollution issue under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @adonisjs/bodyparser versions are affected?
Affected versions include releases prior to 10.1.3, 11.0.0-next.9 across affected packages: @adonisjs/bodyparser.
What version fixes CVE-2026-25754?
Upgrading to 10.1.3, 11.0.0-next.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @adonisjs/bodyparser affected?
Yes, @adonisjs/bodyparser is affected in releases prior to 10.1.3, 11.0.0-next.9. Upgrade your dependency to 10.1.3, 11.0.0-next.9 or later.
What is the CVSS score of CVE-2026-25754?
CVE-2026-25754 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-25754?
CVE-2026-25754 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2026-25754?
Run the dependency tree command: 'npm ls @adonisjs/bodyparser'. 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-f5x2-vj4h-vg4c",
  "modified" : "2026-02-07T00:33:30Z",
  "published" : "2026-02-06T19:27:30Z",
  "aliases" : [ "CVE-2026-25754" ],
  "summary" : "AdonisJS multipart body parsing has Prototype Pollution issue",
  "details" : "### Description\n\nA Prototype Pollution vulnerability (CWE-1321) in AdonisJS multipart form-data parsing may allow a remote attacker to manipulate object prototypes at runtime. This impacts `@adonisjs/bodyparser` through version `10.1.2` and `11.x` prerelease versions prior to `11.0.0-next.8`. This issue has been patched in `@adonisjs/bodyparser` versions `10.1.3` and `11.0.0-next.9`\n\n### Details\n\nAdonisJS parses `multipart/form-data` requests via the BodyParser package. During multipart parsing, form field names are used to construct plain JavaScript objects representing the parsed request body.\n\nDue to insufficient validation of multipart field names, specially crafted fields containing reserved property names such as `__proto__`, `constructor`, or `prototype` could be assigned directly to objects created during parsing. This allows an attacker to pollute object prototypes, potentially affecting other parts of the application that rely on these objects.\n\n**The vulnerability is limited to multipart request parsing and does not affect JSON or URL-encoded body parsing.**\n\n### Impact\n\nExploitation requires an application endpoint that accepts and parses `multipart/form-data` requests.\n\nIf exploited, prototype pollution may lead to unexpected application behavior, logic bypasses, or security issues depending on how polluted objects are later consumed. The severity of the impact depends on application logic and usage patterns of the parsed request data.\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- https://github.com/adonisjs/bodyparser/releases/tag/v10.1.3\n- https://github.com/adonisjs/bodyparser/releases/tag/v11.0.0-next.9",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/bodyparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.1.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.1.2"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/bodyparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "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"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25754"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/bodyparser/commit/40e1c71f958cffb74f6b91bed6630dca979062ed"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/bodyparser/releases/tag/v11.0.0-next.9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/adonisjs/core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-06T19:27:30Z",
    "nvd_published_at" : "2026-02-06T23:15:54Z"
  }
}