chore(deps): bump @adonisjs/bodyparser from 10.1.0 to 10.1.3 by dependabot[bot] · Pull Request #58 · LibreTexts/learning-analytics

Security Fixes

Multipart field names sanitization

Hardened the internal storage used by the multipart parser to collect form fields, preventing potential misuse of specially crafted field names.

File type detection memory improvement

Fixed an issue where the internal buffer used for file type detection could grow indefinitely when processing files whose content didn't match any known magic number signature. The parser now falls back to filename-based detection after a reasonable threshold, ensuring predictable memory usage during file uploads.

Breaking - Prevent path traversal during file uploads

10.1.2 (2026-01-02)

Security update for CVE-2026-21440 (GHSA-gvq6-hvvp-h34h)

This patch release fixes a security issue in multipart file uploads related to how filenames were handled when moving uploaded files to disk.

The MultipartFile.move(location) no longer uses the client-provided filename by default. Previously, if no filename was explicitly provided, the original filename sent by the client was used. This behavior has been changed and now we use uuid to create a unique random name for the file.

Breaking change

If your application relied on the original client filename being preserved implicitly, this behavior has changed. The newly generated file names will now use uuid.

However, if you were always passing an explicit name, then you are unaffected with this breaking change.

We consider this a necessary breaking change to close a security gap and align with secure defaults. Shipping this as a patch release ensures the fix reaches all users, including those who do not regularly upgrade major versions.

Bug Fixes

  • path traversal during file.move operation (6795c0e)

Full Changelog: adonisjs/bodyparser@v10.1.1...v10.1.2

Fix issue with uploading zip files

10.1.1 (2025-11-20)

There were two issues in place.

  • The file-type package was failing with detecting the mime-type of zip files and it was throwing an error
  • The bodyparser was not aborting the request and instead processed the entire stream. As a result of this, the file was uploaded successfully, but with a series of error logs on the console.

Bug Fixes

  • abort when partHandler.reportProgress throws an error da1f279

Full Changelog: adonisjs/bodyparser@v10.1.0...v10.1.1