Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| axios / axios | affected 0.28.0 before 0.33.0; unaffected 0.33.0 |
| axios / axios | affected 1.0.0 before 1.18.0; unaffected 1.18.0 |
CWE
CWE-400
References
- https://github.com/axios/axios/security/advisories/GHSA-pmv8-rq9r-6j72
- https://www.vulncheck.com/advisories/axios-before-denial-of-service-via-formtojson
ADP enrichment
No English description supplied.