Repository navigation
Immutable
release. Only release title and notes can be modified.
11.0.5 (2026-11-04)
This release fixes several denial of service vulnerabilities in multipart parsing. Everyone using @adonisjs/bodyparser@11.x should upgrade.
Security
- A multipart file field named after an
Object.prototypeproperty, such astoString,constructoror__proto__, crashed the process with a single unauthenticated request (GHSA-8w45-cghr-9rh4). - Updated
@poppinss/multipartyto 3.0.1, which brings in the fixes from upstream multiparty 4.3.1 (GHSA-jf2h-r4qp-9rp8):- CVE-2026-8159: ReDoS in
Content-Dispositionfilename parsing. - CVE-2026-87908: unbounded memory use from oversized part headers. Part headers are now limited to 16KB.
- CVE-2026-8162: process crash on malformed percent-encoding in
filename*. - CVE-2026-8161: crash on field names inherited from
Object.prototype.
- CVE-2026-8159: ReDoS in
Bug fixes
- Part headers larger than 16KB are rejected with
E_REQUEST_ENTITY_TOO_LARGE(413). - When multipart processing fails, the rest of the request body is drained before the error is returned, so clients receive the error response instead of
ECONNRESETorEPIPE. - Multipart processing waits for running file handlers to finish before rejecting.
JSON parser
- Added an opt-in
maxDepthoption to the JSON parser to limit nesting depth, with the root counting as 1. Nesting is unlimited unless you set it. - Faster JSON value normalization.
Behavior changes
- Files with malformed
filename*encoding are skipped instead of failing the request. filename*values are decoded withdecodeURIComponent, so encoded slashes (%2F) now appear decoded infile.clientName. If you passclientNametofile.move(), sanitize it first.
Commits
- drain multipart request body before rejecting (8c56a25)
- json: cap nesting depth and add parser benchmark (813229c)
- json: make nesting depth limit opt-in (9a7a71a)
- prevent DoS via inherited multipart handler names (eca6436)
- report multipart part headers limit with E_REQUEST_ENTITY_TOO_LARGE (f798c36)
- update @poppinss/multiparty to 3.0.1 (efd04ce)
- wait for multipart handlers before rejecting (f4d6abc)
Performance Improvements
- speed up JSON value normalization (4ded265)
What's Changed
- perf: cut normalized JSON parsing time by over 60% by @RomainLanz in #81
- chore: harden release workflow for supply-chain security by @thetutlage in #79
Full Changelog: v11.0.4...v11.0.5