Vulnerabilities in pkg:npm/@adonisjs/bodyparser
PACKAGECVE-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.
pkg:npm/@adonisjs/bodyparser
Vulnerability advisories affecting package pkg:npm/@adonisjs/bodyparser. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qcm7-3vpr-hj5h | CVE-2026-48795 | HIGH | @adonisjs/bodyparser has an incomplete fix for CVE-2026-25754 |
| GHSA-xx9g-fh25-4q64 | CVE-2026-25762 | HIGH | AdonisJS vulnerable to Denial of Service (DoS) via Unrestricted Memory Buffering in PartHandler during File Type Detection |
| GHSA-f5x2-vj4h-vg4c | CVE-2026-25754 | HIGH | AdonisJS multipart body parsing has Prototype Pollution issue |
| GHSA-gvq6-hvvp-h34h | CVE-2026-21440 | CRITICAL | AdonisJS Path Traversal in Multipart File Handling |
CVE-2026-48795 at a Glance
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).
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.
npm install @adonisjs/bodyparser@10.1.5
npm install @adonisjs/bodyparser@11.0.3
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
CVE-2026-48795 Affected @adonisjs/bodyparser Versions
2 component(s)| 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?
Which @adonisjs/bodyparser versions are affected?
What version fixes CVE-2026-48795?
Is @adonisjs/bodyparser affected?
What is the CVSS score of CVE-2026-48795?
What CWE is associated with CVE-2026-48795?
How can I check npm dependencies for CVE-2026-48795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}