Skip to main content
VulnerabilityPublished Updated

CVE-2026-67312: Axios · Deep formToJSON Key Recursion Can Cause Denial of Service

Affects axiosSource GCVE Database

0

Mentioned vulnerabilities

CVSS 6.3 Medium : upgrade to 1.18.0 when convenient.

Data as of 26 Oct 2026, 16:07 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.18.0
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

What to do

Upgrade axios to 1.18.0.

Affected software

ProductAffectedFixed in
npmaxiosAffected
  • >=1.0.0 <1.18.0
Fixed in
  • 1.18.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

In the meantime, applications should reject or normalize untrusted FormData key names before passing them to axios.formToJSON. Avoid sending untrusted FormData through axios as JSON unless necessary. Implement error handling to catch exceptions from formToJSON or axios requests that transform untrusted FormData to prevent process crashes.

Description

Axios versions starting from 0.28.0 up to but not including 0.33.0, and versions from 1.0.0 up to but not including 1.18.0, contain an uncontrolled recursion vulnerability in the formDataToJSON function. This vulnerability occurs when attacker-controlled FormData key names with thousands of nested bracket segments cause excessive recursive calls, leading to a JavaScript call stack overflow and denial of service. The issue manifests as a RangeError that can crash the process if not properly handled. Normal multipart FormData submissions and axios versions prior to 0.28.0 are not affected.

References

Community reviews

Loading reviews…