Skip to main content
CVE-2026-21440ExploitPublished

Critical AdonisJS Bodyparser Flaw (CVSS 9.2) Enables Arbitrary File Write on Servers

Source The Hacker News

0
Compare
Authoritative record:CVE-2026-21440· Critical 9.2

Not known to be exploited · CVSS 9.2 Critical : upgrade to 11.0.0-next.6 or 10.1.2 as a priority.

Data as of 13 Jan 2026, 01:09 UTC

CVSS 4.0 base score
9.2Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 11.0.0-next.6, 10.1.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade core to 11.0.0-next.6 or 10.1.2.

Affected software

ProductAffectedFixed in
adonisjscoreAffected
  • >=11.0.0-next.0 <11.0.0-next.6
Fixed in
  • 11.0.0-next.6
adonisjscoreAffected
  • <10.1.2
Fixed in
  • 10.1.2

AI-suggested

  1. Immediately update the @adonisjs/bodyparser package to version 10.1.2 or later (or 11.0.0-next.6 for next releases) to apply the official patch.
  2. Audit all AdonisJS applications to identify and secure any file upload endpoints, ensuring they do not rely on unsanitized filenames.
  3. Implement strict filename sanitization and validation routines to reject or safely handle any path traversal sequences in uploaded filenames.
  4. Configure the MultipartFile.move() function to always use the 'options' argument with sanitized filenames and avoid defaulting to client-supplied names.
  5. Restrict file system permissions for the application process to the minimum necessary, preventing overwriting of critical files or directories.
  6. Employ runtime application self-protection (RASP) or web application firewalls (WAF) with rules to detect and block path traversal attempts.
  7. Monitor logs for suspicious file upload activity or unexpected file modifications.
  8. Conduct penetration testing focusing on file upload functionalities to verify the absence of path traversal vulnerabilities.
  9. Educate developers on secure file handling practices and the risks of unsanitized user input.
  10. Consider isolating upload directories and using containerization or sandboxing to limit the impact of potential exploits.

Description

Users of the "@adonisjs/bodyparser" npm package are being advised to update to the latest version following the disclosure of a critical security vulnerability that, if successfully exploited, could allow a remote attacker to write arbitrary files on the server. Tracked as CVE-2026-21440 (CVSS score: 9.2), the flaw has been described as a path traversal issue affecting the AdonisJS multipart

References

Community reviews

Loading reviews…