AdonisJS core
AdonisJS Path Traversal in Multipart File Handling
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 10.1.2
- >= 11.0.0-next.0, < 11.0.0-next.6
Fixed in 10.1.2, 11.0.0-next.6
Mitigation
Upgrade core to 10.1.2 or 11.0.0-next.6 or later.
References
- Vendor advisory github.com/adonisjs/core/security/advisories/G…
- Patch github.com/adonisjs/bodyparser/commit/143a16f3…
- Patch github.com/adonisjs/bodyparser/commit/6795c0e3…
2 more
- Release notes github.com/adonisjs/bodyparser/releases/tag/v1…
- Release notes github.com/adonisjs/bodyparser/releases/tag/v1…
Timeline
Days relative to CVE publicationFirst public PoC 3.2 days after publication; not in CISA KEV. First PoC: you-ssef9/CVE-2026-21440 (created 5 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.5 PoCs
PoCs 5
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| you-ssef9/CVE-2026-21440 | 5 Jan 2026 +3.2 d | backfilled | 1 | PoC |
| redpack-kr/Ashwesker-CVE-2026-21440 | 7 Jan 2026 +4.4 d | backfilled | 0 | PoC |
| k0nnect/cve-2026-21440-writeup-poc | 8 Jan 2026 +5.2 d | backfilled | 4 | PoC |
| TibbersV6/CVE-2026-21440-POC-EXP | 30 Jan 2026 +28 d | backfilled | 0 | PoC |
| Rui0828/CVE-2026-21440-adonisjs-bodyparser | 4 Nov 2026 +305 d | 14 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 5 PoC reposPOST /upload
- Body markers
file=@payload.txt;filename=../../tmp/pwned.txtinmultipart/form-data- Ports
- 3333
- Seen in
- 1 repo: k0nnect/cve-2026-21440-writeup-poc
- Evidence
- k0nnect/cve-2026-21440-writeup-poc/README.md:117
POST /{var}
- Body markers
shell_pass=echo `inapplication/x-www-form-urlencoded- Ports
- 2324
- Seen in
- 1 repo: TibbersV6/CVE-2026-21440-POC-EXP
- Evidence
- TibbersV6/CVE-2026-21440-POC-EXP/CVE-2026-21440-code.py:60
PUT /{var}
- Body markers
php=<?php @eval({var}["asp=<% eval request("inapplication/x-www-form-urlencoded- Ports
- 2324
- Seen in
- 1 repo: TibbersV6/CVE-2026-21440-POC-EXP
- Evidence
- TibbersV6/CVE-2026-21440-POC-EXP/CVE-2026-21440-code.py:45
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/upload(?:[?#].*)?$
(?i)^/[^/?#]*(?:[?#].*)?$
(?i)^/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3333] (msg:"GG PoC-Monitor CVE-2026-21440 adonisjs core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/upload"; http.request_body; content:"file=@payload.txt|3b|filename=../../tmp/pwned.txt"; reference:url,poc.griffinguard.io/cve/CVE-2026-21440; classtype:web-application-attack; sid:9224856; rev:1;)
alert http any any -> $HOME_NET [2324] (msg:"GG PoC-Monitor CVE-2026-21440 adonisjs core exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"shell_pass=echo `"; reference:url,poc.griffinguard.io/cve/CVE-2026-21440; classtype:web-application-attack; sid:9298882; rev:1;)
alert http any any -> $HOME_NET [2324] (msg:"GG PoC-Monitor CVE-2026-21440 adonisjs core exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.request_body; content:"php=<?php @eval("; http.request_body; content:"asp=<% eval request(|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-21440; classtype:web-application-attack; sid:9517683; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: adonisjs core exploit attempt (CVE-2026-21440)
id: gg-pocmon-cve-2026-21440-9224856
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21440. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21440
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/upload'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21440
title: adonisjs core exploit attempt (CVE-2026-21440)
id: gg-pocmon-cve-2026-21440-9298882
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21440. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21440
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21440
title: adonisjs core exploit attempt (CVE-2026-21440)
id: gg-pocmon-cve-2026-21440-9517683
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-21440. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-21440
logsource:
category: webserver
detection:
selection:
cs-method: PUT
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.21440