ZeroHour

CVE-2026-67313

PoC mass

Uncontrolled Recursion DoS in axios formDataToJSON Processing

CVSS 4.0
6.3 medium
EPSS
<1%p37
Published
()
Modified
AI analysis

Axios versions 0.28.0 and later contain an uncontrolled recursion flaw (CWE-400) in the formDataToJSON helper, which converts FormData field names into nested JSON objects by interpreting bracket notation (e.g., key[subkey][subkey]). An attacker who can influence the field names of FormData passed to axios - for example, an application that forwards user-supplied multipart form data - can supply keys with thousands of nested bracket segments, exhausting the JavaScript call stack and raising a RangeError. The immediate result is a failed HTTP request; in applications that do not catch the exception, the process can terminate, yielding a remote denial-of-service (CVSS 4.0 scores this as low availability impact with no confidentiality or integrity impact). Any application or service using axios 0.28.0 or later to process attacker-influenced FormData is affected, particularly Node.js backends that relay client-supplied form fields. As of this writing a public advisory with PoC reference exists (GHSA-42h9-826w-cgv3), EPSS is low at 0.4% (36th percentile), the flaw is not in CISA KEV, and no confirmed in-the-wild exploitation has been reported.

What to do: Upgrade axios to the patched release referenced in the vendor advisory GHSA-42h9-826w-cgv3 (check the advisory/release notes for the fixed version). As interim mitigations, validate or cap the bracket-nesting depth of FormData field names received from untrusted sources, wrap axios calls in exception handling so a RangeError cannot terminate the process, or serialize form data yourself (e.g., via URLSearchParams or plain objects) instead of relying on automatic FormData-to-JSON conversion. Audit Node.js backends and bundled front-end code for axios usage where external input controls multipart/form-data keys.

Affected
axios0.28.0 and later (all releases prior to the fix; see GHSA-42h9-826w-cgv3 for the patched release)
Estimated exposure
massmillions of installations (axios draws tens of millions of weekly npm downloads) — Estimate based on axios being one of the most widely downloaded JavaScript HTTP libraries on npm (tens of millions of downloads weekly, bundled into countless Node.js services and front-end builds), though only the subset of deployments…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

axios versions 0.28.0 and later contain uncontrolled recursion in formDataToJSON when processing FormData field names with deeply nested bracket segments. Attackers can supply FormData with field names containing thousands of nested brackets to exhaust the JavaScript call stack and trigger RangeError, causing request failure or process termination in applications that do not handle the exception.

Vendors
axios
Products
axios
Weakness
CWE-400
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.