CVE-2026-67312

axios 0.28.0 before 0.33.0 and 1.0.0 before 1.18.0 Denial of Service via formToJSON

State
Published
Severity
6.3 Medium
Published
Aug 1, 2026
Updated
Oct 29, 2026
Reserved
Jul 29, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NVulnCheck

Weaknesses

  • CWE-400 Uncontrolled Resource Consumption

Affected Products

ProductVersions
axiosaxios
  • 0.28.0 to before 0.33.0Affected
  • 0.33.0Not affected
axiosaxios
  • 1.0.0 to before 1.18.0Affected
  • 1.18.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.