CVE-2026-21440 Details
Description
AdonisJS is a TypeScript-first web framework. A Path Traversal vulnerability in AdonisJS multipart file handling may allow a remote attacker to write arbitrary files to arbitrary locations on the server filesystem. This impacts @adonisjs/bodyparser through version 10.1.1 and 11.x prerelease versions prior to 11.0.0-next.6. This issue has been patched in @adonisjs/bodyparser versions 10.1.2 and 11.0.0-next.6.
A path traversal vulnerability has been identified in AdonisJS's multipart file handling, specifically in the @adonisjs/bodyparser package, through version 10.1.1 and 11.x prerelease versions prior to 11.0.0-next.6. This vulnerability allows remote attackers to write arbitrary files to locations on the server filesystem. The issue arises because the 'MultipartFile.move()' method, which handles file uploads, defaults to using the original client-provided filename. If this filename is not properly sanitized, an attacker can exploit the traversal sequences to write files outside the intended upload directory. Additionally, the default overwrite behavior can lead to unintentional file replacements.
Users can upgrade to @adonisjs/bodyparser versions 10.1.2 or 11.0.0-next.6, both of which include the necessary fix. Instructions for downloading these versions are available on the AdonisJS bodyparser GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 2, 2026CISA-ADP
Assessed Jan 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/adonisjs/bodyparser/commit/143a16f35602be8561215611582211dec280cae6 | [email protected] | Source CodeVendor |
| https://github.com/adonisjs/bodyparser/commit/6795c0e3fa824ae275bbd992aae60609e96f0f03 | [email protected] | Source CodeVendor |
| https://github.com/adonisjs/bodyparser/releases/tag/v10.1.2 | [email protected] | Release NotesVendor |
| https://github.com/adonisjs/bodyparser/releases/tag/v11.0.0-next.6 | [email protected] | Release NotesVendor |
| https://github.com/adonisjs/core/security/advisories/GHSA-gvq6-hvvp-h34h | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @adonisjs/bodyparser | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 2, 2026 | New CVE Received | [email protected] |
Volerion