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… (CVE-2026-67312)
Axios versions from 0.28.0 before 0.33.0 and from 1.0.0 before 1.18.0 contain a vulnerability in the formDataToJSON function that leads to uncontrolled recursion when processing attacker-controlled FormData field names with deeply nested bracket segments. This causes a JavaScript call stack overflow (RangeError) resulting in denial of service or process termination if error handling is inadequate.
AI Analysis
Technical Summary
The vulnerability exists in axios's formDataToJSON function, exposed as axios.formToJSON() and used internally when serializing FormData with Content-Type: application/json. When an attacker supplies FormData field names containing thousands of nested bracket-delimited segments, the buildPath() function recurses without bounds, exhausting the JavaScript call stack. This leads to a RangeError and denial of service for the affected request or process termination in applications lacking proper error handling. The affected versions are axios >=0.28.0 <0.33.0 and >=1.0.0 <1.18.0.
Potential Impact
An attacker can cause denial of service by sending specially crafted FormData with deeply nested field names, triggering unbounded recursion and crashing the JavaScript call stack. This disrupts the availability of the affected application or service. There is no indication of code execution or data exposure from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications should implement input validation or limit the depth of nested FormData field names to prevent unbounded recursion. Proper error handling should be in place to avoid process termination on stack overflow errors.
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… (CVE-2026-67312)
Description
Axios versions from 0.28.0 before 0.33.0 and from 1.0.0 before 1.18.0 contain a vulnerability in the formDataToJSON function that leads to uncontrolled recursion when processing attacker-controlled FormData field names with deeply nested bracket segments. This causes a JavaScript call stack overflow (RangeError) resulting in denial of service or process termination if error handling is inadequate.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in axios's formDataToJSON function, exposed as axios.formToJSON() and used internally when serializing FormData with Content-Type: application/json. When an attacker supplies FormData field names containing thousands of nested bracket-delimited segments, the buildPath() function recurses without bounds, exhausting the JavaScript call stack. This leads to a RangeError and denial of service for the affected request or process termination in applications lacking proper error handling. The affected versions are axios >=0.28.0 <0.33.0 and >=1.0.0 <1.18.0.
Potential Impact
An attacker can cause denial of service by sending specially crafted FormData with deeply nested field names, triggering unbounded recursion and crashing the JavaScript call stack. This disrupts the availability of the affected application or service. There is no indication of code execution or data exposure from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications should implement input validation or limit the depth of nested FormData field names to prevent unbounded recursion. Proper error handling should be in place to avoid process termination on stack overflow errors.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4ww2-rjh2-xpv9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-67312"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a6e6294bf32cb7a344f6957
Added to database: 08/01/2026, 21:18:12 UTC
Last enriched: 08/01/2026, 21:22:21 UTC
Last updated: 08/02/2026, 03:27:06 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.