CVE-2026-25754: AdonisJS BodyParser Prototype Pollution Vulnerability
Summary
CVE-2026-25754: AdonisJS multipart body parsing has Prototype Pollution issue. Affects @adonisjs/bodyparser across 2 version ranges.
< 10.1.3
>= 11.0.0-next.0, < 11.0.0-next.9
Fixed in 10.1.3 or 11.0.0-next.9, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
AdonisJS is a Node.js MVC framework that helps developers build web applications and APIs with ease. The @adonisjs/bodyparser package is responsible for parsing incoming request bodies, specifically multipart form-data. This package is widely used for handling file uploads and form submissions in AdonisJS applications. However, it has been found to be vulnerable to a Prototype Pollution issue, which can lead to serious security implications if not addressed.
Vulnerability Detail
A Prototype Pollution vulnerability (CWE-1321) exists in the @adonisjs/bodyparser package, affecting versions up to 10.1.2 and 11.x prerelease versions prior to 11.0.0-next.8. This vulnerability arises from insufficient validation of multipart field names during the parsing of multipart/form-data requests. Attackers can exploit this flaw by sending specially crafted field names that include reserved property names such as proto, constructor, or prototype. This manipulation can lead to unexpected application behavior, logic bypasses, or security issues, depending on how the polluted objects are utilized within the application.
How To Fix
Latest published version: 11.0.4 as of 23 Oct 2026
npm install @adonisjs/bodyparser@11.0.4
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 10.1.310.1.3npm install @adonisjs/bodyparser@10.1.3 -
>= 11.0.0-next.0, < 11.0.0-next.911.0.0-next.9npm install @adonisjs/bodyparser@11.0.0-next.9
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a temporary workaround, you can implement input validation to sanitize and restrict the field names being processed by the multipart parser. This can help mitigate the risk of prototype pollution until the package is updated. However, the best solution is to upgrade to the patched versions.
Conclusion
The Prototype Pollution vulnerability in the @adonisjs/bodyparser package poses significant risks to applications that handle multipart form-data requests. It is crucial for developers to upgrade to the patched versions to ensure the security and integrity of their applications.
See every vulnerability recorded for @adonisjs/bodyparser →
FAQ
Prototype Pollution is a security vulnerability that allows an attacker to manipulate the prototype of a JavaScript object, potentially leading to unexpected behavior in applications.
Versions up to 10.1.2 and 11.x prerelease versions prior to 11.0.0-next.8 are affected by this vulnerability.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.
Exploitation of this vulnerability can lead to unexpected application behavior, logic bypasses, or security issues depending on how polluted objects are consumed in the application.
Yes, implementing input validation to sanitize multipart field names can help mitigate the risk until the package is updated.
References
Related vulnerabilities
Recent vulnerabilities recorded for @adonisjs/bodyparser.