CVE-2026-21440 AdonisJS Path Traversal in Multipart File Handling
Remote attackers can write arbitrary files to arbitrary server locations via multipart file handling in AdonisJS bodyparser.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-21440?
CVE-2026-21440 is a critical path traversal vulnerability in adonisjs core, published on 2 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-21440?
4 open source packages ship an affected version, including @adonisjs/bodyparser.
| Package | Affected | Fixed in |
|---|---|---|
@adonisjs/bodyparser npm | All versions | 10.1.2 |
@adonisjs/bodyparser npm | All versions | 10.1.2 |
@adonisjs/bodyparser npm | From 11.0.0-next.0 | 11.0.0-next.6 |
@adonisjs/bodyparser npm | From 11.0.0-next.0 | 11.0.0-next.6 |
How do I fix CVE-2026-21440?
Upgrade @adonisjs/bodyparser to a fixed version for your release line: 10.1.2 or 11.0.0-next.6.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-21440 being exploited?
There is no known exploitation of CVE-2026-21440 in the wild and no public exploit code.
Public exploit code: 4 proofs of concept on GitHub.
Sources
Also known as GHSA-gvq6-hvvp-h34h.