{"answers":{"affected":"4 open source packages ship an affected version, including @adonisjs/bodyparser.","exploited":"There is no known exploitation of CVE-2026-21440 in the wild and no public exploit code.","fix":"Upgrade @adonisjs/bodyparser to a fixed version for your release line: 10.1.2 or 11.0.0-next.6.","what":"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."},"fix_prompt":"Check this codebase for CVE-2026-21440 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2026-21440 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @adonisjs/bodyparser (npm): affected all versions; fixed in 10.1.2\n- @adonisjs/bodyparser (npm): affected all versions; fixed in 10.1.2\n- @adonisjs/bodyparser (npm): affected from 11.0.0-next.0; fixed in 11.0.0-next.6\n- @adonisjs/bodyparser (npm): affected from 11.0.0-next.0; fixed in 11.0.0-next.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-21440/ (Markdown: https://insights.sbomify.com/CVE-2026-21440/index.md)","id":"CVE-2026-21440","markdown":"https://insights.sbomify.com/CVE-2026-21440/index.md","name":"CVE-2026-21440","record":{"aliases":["GHSA-gvq6-hvvp-h34h"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"AdonisJS bodyparser","requires_auth":"none","summary":"Remote attackers can write arbitrary files to arbitrary server locations via multipart file handling in AdonisJS bodyparser.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-05","github_poc":4,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-01-08T00:55:02Z","kind":"github_poc","ref":"https://github.com/k0nnect/cve-2026-21440-writeup-poc","stars":4,"title":"poc and writeup for cve-2026-21440: a critical path traversal vulnerability in @adonisjs/bodyparser allowing arbitrary file writing"},{"date":"2026-01-05T22:40:37Z","kind":"github_poc","ref":"https://github.com/you-ssef9/CVE-2026-21440","stars":1,"title":"Advanced detection-only PoC for CVE-2026-21440 affecting AdonisJS BodyParser. No exploitation included."},{"date":"2026-01-07T05:29:02Z","kind":"github_poc","ref":"https://github.com/redpack-kr/Ashwesker-CVE-2026-21440","stars":0,"title":"CVE-2026-21440"},{"date":"2026-01-30T07:19:50Z","kind":"github_poc","ref":"https://github.com/TibbersV6/CVE-2026-21440-POC-EXP","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"AdonisJS Path Traversal in Multipart File Handling","id":"CVE-2026-21440","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API)","id":"CVE-2026-21441"},"packages":[{"ecosystem":"npm","fixed":["10.1.2"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/bodyparser","purl":null,"source":"GHSA-gvq6-hvvp-h34h"},{"ecosystem":"npm","fixed":["10.1.2"],"introduced":["0"],"last_affected":[],"package":"@adonisjs/bodyparser","purl":"pkg:npm/%40adonisjs/bodyparser","source":"GHSA-gvq6-hvvp-h34h"},{"ecosystem":"npm","fixed":["11.0.0-next.6"],"introduced":["11.0.0-next.0"],"last_affected":[],"package":"@adonisjs/bodyparser","purl":null,"source":"GHSA-gvq6-hvvp-h34h"},{"ecosystem":"npm","fixed":["11.0.0-next.6"],"introduced":["11.0.0-next.0"],"last_affected":[],"package":"@adonisjs/bodyparser","purl":"pkg:npm/%40adonisjs/bodyparser","source":"GHSA-gvq6-hvvp-h34h"}],"prev":{"headline":"badkeys vulnerable to ASCII control character injection on console via malformed input","id":"CVE-2026-21439"},"products":["core"],"published":"2026-01-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-05","vendors":["adonisjs"]},"summary":"Remote attackers can write arbitrary files to arbitrary server locations via multipart file handling in AdonisJS bodyparser.","url":"https://insights.sbomify.com/CVE-2026-21440/"}