High

AdonisJS multipart body parsing has Prototype Pollution issue

  • Disclosed: 06.02.2026
  • Updated: 11.10.2026 10:22

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:

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @adonisjs/bodyparser < 10.1.3, >= 11.0.0-next.0, < 11.0.0-next.9 10.1.3, 11.0.0-next.9

References

CVSS score 7.2/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-1321
Platform
npm
Package
@adonisjs/bodyparser
Disclosed
06.02.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-f5x2-vj4h-vg4c - CC BY 4.0

Vulnerability history: @adonisjs/bodyparser

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
01.2026 06.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 3

Disclosures per year

  1. 2026: 4
  1. High · 8.6 CVE-2026-48795 >= 10.1.3, < 10.1.5, >= 11.0.0-next.9, < 11.0.3 10.1.5, 11.0.3
  2. High · 7.5 CVE-2026-25762 < 10.1.3, >= 11.0.0-next.0, < 11.0.0-next.9 10.1.3, 11.0.0-next.9
  3. AdonisJS multipart body parsing has Prototype Pollution issue this entry
    High · 7.2 CVE-2026-25754 < 10.1.3, >= 11.0.0-next.0, < 11.0.0-next.9 10.1.3, 11.0.0-next.9
  4. Critical CVE-2026-21440 < 10.1.2, >= 11.0.0-next.0, < 11.0.0-next.6 10.1.2, 11.0.0-next.6

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.