@adonisjs/bodyparser is vulnerable to Prototype Pollution
73
High Risk
The FormFields class in @adonisjs/bodyparser stores parsed multipart fields by calling lodash.set on its internal container, which creates intermediate plain objects for every path segment. A remote attacker submitting a crafted multipart request can pollute Object.prototype, affecting all subsequent objects and enabling logic bypasses, denial of service, or further exploitation depending on downstream code. The fix tokenizes each key with lodash.toPath and rejects any field whose segments include __proto__, prototype, or constructor.
You are affected if you are using a version that falls within the vulnerable range.
@adonisjs/bodyparser is vulnerable to Prototype Pollution in versions 10.1.3 - 10.1.4.
Upgrade the @adonisjs/bodyparser library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant