NetSight
medium6.3No CVE yet

GHSA-4ww2-rjh2-xpv9

Duplicate Advisory: Axios: Deep formToJSON Key Recursion Can Cause Denial of Service

Impact

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pmv8-rq9r-6j72. This link is maintained to preserve external references. ## Original 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.

An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
npmaxios>= 1.0.0, < 1.18.0none recorded

Weakness classification

References