Axios: unbounded recursion in toFormData causes DoS via deeply nested request data
- Severity:
- Medium
Description
toFormData recursively walks nested objects with no depth limit, so a deeply nested value passed as request data crashes the Node.js process with a RangeError.
Recommendation
Update the axios package to the latest compatible version. Followings are version details:
Affected version(s): **<= 0.31.0 >= 1.0.0, < 1.15.1** Patched version(s): **0.31.1 1.15.1**
References
Related Issues
- yaml is vulnerable to Stack Overflow via deeply nested YAML collections - CVE-2026-33532
- flatted vulnerable to unbounded recursion DoS in parse() revive phase - CVE-2026-32141
- Cube Core is vulnerable to Denial of Service (DoS) via crafted request - CVE-2026-25957
- Seroval affected by Denial of Service via Deeply Nested Objects - CVE-2026-24006
You might also like:
- Tags:
- npm
- axios
Anything's wrong? Let us know Last updated on June 08, 2026


