Description
axios before 0.33.0 contains an incomplete depth-limit bypass in toFormData.js when serializing objects with top-level keys ending in '{}'. Attackers who control object keys and nested values passed to axios form or parameter serialization can trigger a RangeError from JSON.stringify, causing denial of service in the affected request path.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-674 — Uncontrolled Recursion
Affected products
| Vendor | Product | Versions |
|---|---|---|
| axios | axios | 0.31.1 to <0.33.0; 0.33.0 |
| axios | axios | 1.15.1 to <1.18.0; 1.18.0 |
References
- https://github.com/axios/axios/security/advisories/GHSA-hcpx-6fm6-wx23 (vendor-advisory)
- https://www.vulncheck.com/advisories/axios-before-denial-of-service-via-maxdepth-bypass (third-party-advisory)
Generated from the official CVE List on 02 Aug 2026 07:05 UTC.