CVE-2026-48795: @adonisjs/bodyparser @adonisjs/bodyparser Has An Incomplete Fix Vulnerability

HIGH
Advisory Identifier: GHSA-qcm7-3vpr-hj5h
CVSS 8.6
CWE-1321
Published
Advisory Summary

CVE-2026-48795 is a HIGH (CVSS 8.6) @adonisjs/bodyparser has an incomplete fix vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @adonisjs/bodyparser libraries in the npm ecosystem. The issue involves @adonisjs/bodyparser has an incomplete fix for cve-2026-25754. Remediation is available by upgrading affected packages to version 10.1.5, 11.0.3.

CVE-2026-48795 at a Glance

CVE Identifier CVE-2026-48795
GHSA Identifier GHSA-qcm7-3vpr-hj5h
Severity HIGH
CVSS v3.1 Base Score 8.6
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: 8.6

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:U/C:L/I:L/A:H).

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

How to Fix CVE-2026-48795

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.5
npm install @adonisjs/bodyparser@10.1.5
@adonisjs/bodyparser fixed: 11.0.3
npm install @adonisjs/bodyparser@11.0.3
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-48795, 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.5), 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

### Summary The fix for [GHSA-f5x2-vj4h-vg4c](https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c) / CVE-2026-25754 introduced in commit [`40e1c71`](https://github.com/adonisjs/bodyparser/commit/40e1c71f958cffb74f6b91bed6630dca979062ed) is incomplete and can be bypassed through nested prototype pollution payloads. The original patch replaced the internal `FormFields` storage object with `Object.create(null)`, preventing direct payloads such as `__proto__.polluted`. However, payloads containing a non-dangerous segment before `__proto__` or `constructor.prototype`, such as `user.__proto__.polluted`, still lead to `Object.prototype` pollution. This issue is exploitable remotely through a single unauthenticated `multipart/form-data` request using the default configuration. ### Affected versions - `>= 10.1.3 < 10.1.5` - `>= 11.0.0-next.9 < 11.0.3` ### Details The regression tests added by the original fix only covered direct payloads such as: - `__proto__.polluted` - `constructor.prototype.polluted` These payloads are blocked because the root object no longer inherits from `Object.prototype`. However, lodash `_.set()` (via `@poppinss/utils`) still creates intermediate objects using plain `{}` values. Once a normal segment is encountered, subsequent `__proto__` or `constructor.prototype` segments regain access to `Object.prototype`. ### Impact An unauthenticated attacker can remotely pollute `Object.prototype` on any route accepting multipart/form-data requests behind `BodyParserMiddleware`. Because the pollution is process-wide, the impact may include authorization bypasses, unexpected behavior in downstream libraries, or prototype pollution gadget chains leading to remote code execution. ### 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.5 - https://github.com/adonisjs/bodyparser/releases/tag/v11.0.3 ### References - [CWE-1321](https://cwe.mitre.org/data/definitions/1321.html) - Prior advisory this bypasses: [GHSA-f5x2-vj4h-vg4c](https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c) / CVE-2026-25754

CVE-2026-48795 Affected @adonisjs/bodyparser Versions

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

References

Frequently Asked Questions

What is CVE-2026-48795?
CVE-2026-48795 is a security vulnerability in @adonisjs/bodyparser involving @adonisjs/bodyparser has an incomplete fix for CVE-2026-25754 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.5, 11.0.3 across affected packages: @adonisjs/bodyparser.
What version fixes CVE-2026-48795?
Upgrading to 10.1.5, 11.0.3 (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.5, 11.0.3. Upgrade your dependency to 10.1.5, 11.0.3 or later.
What is the CVSS score of CVE-2026-48795?
CVE-2026-48795 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H.
What CWE is associated with CVE-2026-48795?
CVE-2026-48795 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-48795?
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-qcm7-3vpr-hj5h",
  "modified" : "2026-06-30T18:34:32Z",
  "published" : "2026-06-30T18:34:32Z",
  "aliases" : [ "CVE-2026-48795" ],
  "summary" : "@adonisjs/bodyparser has an incomplete fix for CVE-2026-25754",
  "details" : "### Summary\n\nThe fix for [GHSA-f5x2-vj4h-vg4c](https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c) / CVE-2026-25754 introduced in commit [`40e1c71`](https://github.com/adonisjs/bodyparser/commit/40e1c71f958cffb74f6b91bed6630dca979062ed) is incomplete and can be bypassed through nested prototype pollution payloads.\n\nThe original patch replaced the internal `FormFields` storage object with `Object.create(null)`, preventing direct payloads such as `__proto__.polluted`. However, payloads containing a non-dangerous segment before `__proto__` or `constructor.prototype`, such as `user.__proto__.polluted`, still lead to `Object.prototype` pollution.\n\nThis issue is exploitable remotely through a single unauthenticated `multipart/form-data` request using the default configuration.\n\n### Affected versions\n\n- `>= 10.1.3 < 10.1.5`\n- `>= 11.0.0-next.9 < 11.0.3`\n\n### Details\n\nThe regression tests added by the original fix only covered direct payloads such as:\n\n- `__proto__.polluted`\n- `constructor.prototype.polluted`\n\nThese payloads are blocked because the root object no longer inherits from `Object.prototype`.\n\nHowever, lodash `_.set()` (via `@poppinss/utils`) still creates intermediate objects using plain `{}` values. Once a normal segment is encountered, subsequent `__proto__` or `constructor.prototype` segments regain access to `Object.prototype`.\n\n### Impact\n\nAn unauthenticated attacker can remotely pollute `Object.prototype` on any route accepting multipart/form-data requests behind `BodyParserMiddleware`.\n\nBecause the pollution is process-wide, the impact may include authorization bypasses, unexpected behavior in downstream libraries, or prototype pollution gadget chains leading to remote code execution.\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/bodyparser/releases/tag/v10.1.5\n- https://github.com/adonisjs/bodyparser/releases/tag/v11.0.3\n\n### References\n\n- [CWE-1321](https://cwe.mitre.org/data/definitions/1321.html)\n- Prior advisory this bypasses: [GHSA-f5x2-vj4h-vg4c](https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c) / CVE-2026-25754",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/bodyparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.3"
      }, {
        "fixed" : "10.1.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.1.4"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@adonisjs/bodyparser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0-next.9"
      }, {
        "fixed" : "11.0.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.0.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/core/security/advisories/GHSA-qcm7-3vpr-hj5h"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/bodyparser/commit/40e1c71f958cffb74f6b91bed6630dca979062ed"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/bodyparser/releases/tag/v10.1.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/adonisjs/bodyparser/releases/tag/v11.0.3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/adonisjs/core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-30T18:34:32Z",
    "nvd_published_at" : null
  }
}