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.
Published: 2026-01-02
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote file write enabling potential code execution or defacement
Action: Immediate Patch
AI Analysis

Impact

A path traversal flaw in AdonisJS multipart file handling allows a remote attacker to write arbitrary files to any location on the server’s filesystem. The vulnerability is a classic file‑write vulnerability (CWE‑22) and can be leveraged to inject malicious scripts, overwrite configuration files, or deploy web shells, thereby providing a vector for remote code execution or system compromise.

Affected Systems

The flaw affects AdonisJS core’s bodyparser module. Vulnerable versions include @adonisjs/bodyparser v10.1.1 and all 11.x pre‑release releases prior to 11.0.0‑next.6. The issue has been fixed in v10.1.2 and 11.0.0‑next.6.

Risk and Exploitability

The CVSS score of 9.2 marks this as a critical vulnerability, yet the EPSS score of less than 1% indicates a very low exploitation probability at the time of analysis. The flaw was not listed in the CISA KEV catalog. An attacker can exploit it over HTTP by crafting a multipart/form-data request with a manipulated filename containing path‑traversal tokens such as "../" to write files outside the intended upload directory. Successful exploitation typically requires the web application to run with file‑write permissions and may not necessitate additional privileges, making it a high‑risk but low‑prevalence threat.

Generated by OpenCVE AI on April 18, 2026 at 08:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update @adonisjs/bodyparser to at least version 10.1.2 or 11.0.0‑next.6, which contains the official fix.
  • If an upgrade cannot be performed immediately, enforce strict upload path validation by sanitizing filenames and confining writes to a dedicated safe directory with the minimum necessary permissions.
  • Apply web‑application firewall rules to block multipart requests containing suspicious path traversal characters such as ".." or leading slashes.
  • Audit server file permissions to ensure the user running the application cannot write to sensitive system directories.

Generated by OpenCVE AI on April 18, 2026 at 08:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gvq6-hvvp-h34h AdonisJS Path Traversal in Multipart File Handling
History

Tue, 06 Jan 2026 00:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 02 Jan 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title AdonisJS Path Traversal in Multipart File Handling
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-05T20:37:47.577Z

Reserved: 2025-12-29T03:00:29.276Z

Link: CVE-2026-21440

cve-icon Vulnrichment

Updated: 2026-01-05T20:31:30.704Z

cve-icon NVD

Status : Deferred

Published: 2026-01-02T19:15:48.607

Modified: 2026-04-15T00:35:42.020

Link: CVE-2026-21440

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T08:45:41Z

Weaknesses