High severityNVD Advisory· Published Feb 6, 2026· Updated Feb 9, 2026
AdonisJS multipart body parsing has Prototype Pollution issue
CVE-2026-25754
Description
AdonisJS is a TypeScript-first web framework. Prior to versions 10.1.3 and 11.0.0-next.9, a prototype pollution vulnerability in AdonisJS multipart form-data parsing may allow a remote attacker to manipulate object prototypes at runtime. This issue has been patched in versions 10.1.3 and 11.0.0-next.9.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@adonisjs/bodyparsernpm | < 10.1.3 | 10.1.3 |
@adonisjs/bodyparsernpm | >= 11.0.0-next.0, < 11.0.0-next.9 | 11.0.0-next.9 |
Affected products
1Patches
140e1c71f958cfix: prevent prototype pollution via multipart field names
2 files changed · +17 −1
src/form_fields.ts+1 −1 modified@@ -17,7 +17,7 @@ export class FormFields { /** * Internal storage for form fields */ - #fields: any = {} + #fields: any = Object.create(null) #normalizer?: (value: string) => string | null
tests/form_fields.spec.ts+16 −0 modified@@ -94,4 +94,20 @@ test.group('Form Fields Parser', () => { formFields.add('username', ' ') assert.deepEqual(formFields.get(), { username: null }) }) + + test('should not pollute Object.prototype via __proto__', ({ assert }) => { + const formFields = new FormFields() + formFields.add('__proto__.polluted', 'yes') + + const clean: Record<string, any> = {} + assert.isUndefined(clean['polluted']) + }) + + test('should not pollute Object.prototype via constructor.prototype', ({ assert }) => { + const formFields = new FormFields() + formFields.add('constructor.prototype.polluted2', 'yes') + + const clean: Record<string, any> = {} + assert.isUndefined(clean['polluted2']) + }) })
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-f5x2-vj4h-vg4cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-25754ghsaADVISORY
- github.com/adonisjs/bodyparser/commit/40e1c71f958cffb74f6b91bed6630dca979062edghsax_refsource_MISCWEB
- github.com/adonisjs/bodyparser/releases/tag/v11.0.0-next.9ghsax_refsource_MISCWEB
- github.com/adonisjs/core/security/advisories/GHSA-f5x2-vj4h-vg4cghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.