Description
axios versions from 0.28.0 before 0.33.0 and from 1.0.0 before 1.18.0 contain uncontrolled recursion in formDataToJSON (exposed as axios.formToJSON() and used internally when serializing FormData with Content-Type: application/json). When an application passes attacker-controlled FormData field names, a field name with thousands of nested bracket-delimited segments causes unbounded recursion in buildPath(), exhausting the JavaScript call stack (RangeError: Maximum call stack size exceeded) and causing denial of service for that request, or process termination in applications without appropriate error handling.
Severity (CVSS)
| Base score | 6.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-400 — Uncontrolled Resource Consumption
Affected products
| Vendor | Product | Versions |
|---|---|---|
| axios | axios | 0.28.0 to <0.33.0; 0.33.0 |
| axios | axios | 1.0.0 to <1.18.0; 1.18.0 |
References
- https://github.com/axios/axios/security/advisories/GHSA-pmv8-rq9r-6j72 (vendor-advisory)
- https://www.vulncheck.com/advisories/axios-before-denial-of-service-via-formtojson (third-party-advisory)
Generated from the official CVE List on 02 Aug 2026 07:05 UTC.