Your AdonisJS ecosystem, in the loop.
All insights
releaseAction required

Security and Bug Fix Release for @adonisjs/bodyparser v11.0.5

· Developer impact : high

Version 11.0.5 of @adonisjs/bodyparser addresses multiple denial of service vulnerabilities related to multipart parsing, including crashes caused by multipart file fields named after Object.prototype properties. It updates the @poppinss/multiparty dependency to 3.0.1, which includes fixes for ReDoS, unbounded memory use, and crashes on malformed inputs. Additionally, it introduces a 16KB limit on multipart part headers, improved error handling by draining request bodies before rejecting, and an opt-in maxDepth option for JSON parsing to limit nesting. Files with malformed filename* encoding are now skipped rather than causing failures, and filename* values are decoded with decodeURIComponent, affecting clientName handling.

What this means for your code

Developers using @adonisjs/bodyparser@11.x should upgrade to v11.0.5 to mitigate security vulnerabilities and benefit from improved multipart parsing robustness and JSON parsing enhancements. They should review any usage of file.clientName, especially if passing it to file.move(), to sanitize decoded slashes. The new maxDepth option for JSON parsing is opt-in and does not affect existing behavior unless enabled. Error handling for multipart requests is improved, potentially affecting error response behavior.

  • Upgrade @adonisjs/bodyparser to v11.0.5 promptly to fix security vulnerabilities.
  • Review code that uses file.clientName and sanitize it before passing to file.move(), due to decoding changes.
  • Optionally enable the new maxDepth option in JSON parser to limit nesting depth if desired.
  • Test multipart request handling to observe improved error responses and header size limits.

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr