CVE-2026-67312: Axios · Deep formToJSON Key Recursion Can Cause Denial of Service
Affects axiosSource GCVE Database
Mentioned vulnerabilities
CVSS 6.3 Medium : upgrade to 1.18.0 when convenient.
Data as of 26 Oct 2026, 16:07 UTC
- Patch
- Available – fixed in 1.18.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NWhat to do
Upgrade axios to 1.18.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmaxios | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
In the meantime, applications should reject or normalize untrusted FormData key names before passing them to axios.formToJSON. Avoid sending untrusted FormData through axios as JSON unless necessary. Implement error handling to catch exceptions from formToJSON or axios requests that transform untrusted FormData to prevent process crashes.
Description
Axios versions starting from 0.28.0 up to but not including 0.33.0, and versions from 1.0.0 up to but not including 1.18.0, contain an uncontrolled recursion vulnerability in the formDataToJSON function. This vulnerability occurs when attacker-controlled FormData key names with thousands of nested bracket segments cause excessive recursive calls, leading to a JavaScript call stack overflow and denial of service. The issue manifests as a RangeError that can crash the process if not properly handled. Normal multipart FormData submissions and axios versions prior to 0.28.0 are not affected.
References
- github.com/axios/axios/security/advisories/GHSA-pmv8-rq9r-6j72 (opens in a new tab)
- github.com/axios/axios/pull/11000 (opens in a new tab)
- github.com/axios/axios/pull/11001 (opens in a new tab)
- github.com/axios/axios/commit/1417285c69344bbcc6420a021f67dee0c6fedb2d (opens in a new tab)
- github.com/axios/axios/commit/32fc489632377d214db55bfa4e2c48486a7d7ce2 (opens in a new tab)
- github.com/axios/axios (opens in a new tab)
- github.com/axios/axios/releases/tag/v0.33.0 (opens in a new tab)
- github.com/axios/axios/releases/tag/v1.18.0 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-67312 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-68941 (opens in a new tab)
- vulncheck.com/advisories/axios-before-denial-of-service-via-formtojson (opens in a new tab)