Security Fixes for Multipart Denial of Service Vulnerabilities in @adonisjs/bodyparser v10.1.6
· Developer impact : high
Version 10.1.6 of @adonisjs/bodyparser addresses multiple denial of service vulnerabilities related to multipart parsing. The update includes fixes for crashes caused by multipart file fields named after Object.prototype properties, updates to the @poppinss/multiparty dependency to version 3.0.1 which resolves several CVEs, and improvements in handling large part headers and malformed filename encodings.
Developers using @adonisjs/bodyparser@10.x should upgrade to v10.1.6 to mitigate security risks. The update changes some multipart parsing behaviors, such as skipping files with malformed filename* encoding instead of failing the request, and decoding filename* values with decodeURIComponent, which may affect file naming and handling. Files with part headers larger than 16KB are now rejected with a 413 error. These changes may require reviewing file upload handling and sanitization of client-provided filenames.
- Upgrade @adonisjs/bodyparser to version 10.1.6 immediately to fix security vulnerabilities.
- Review multipart file upload handling, especially if relying on filename* encoding or custom file naming.
- Sanitize clientName inputs if passing them explicitly to file.move() due to decoding changes.
- Test multipart upload functionality to ensure compatibility with new error handling and behavior changes.
Original sources
AI-generated analysis based on the linked sources. Check the original documentation before changing your application.