CVE-2026-67312

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

Published Aug 1, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an uncontrolled recursion in axios’s formDataToJSON routine, exposed as axios.formToJSON() and used internally when serializing FormData with Content‑Type: application/json. When a request includes a FormData field name containing thousands of nested bracket‑delimited segments, the buildPath() helper recurses without bound, exhausting the JavaScript call stack and raising a RangeError (Maximum call stack size exceeded). This causes the offending request to fail, and in applications that do not implement sufficient error handling it can lead to process termination, effectively denying service for the affected endpoint.

Affected Systems

The flaw affects the Axios library for Node.js. Versions 0.28.0 through 0.32.9 and 1.0.0 through 1.17.9 are vulnerable. Any JavaScript application that imports these library versions and processes user‑provided FormData with application/json content type is at risk.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score of <1% suggests a very low probability of exploitation in the current period, and the vulnerability is not listed in the CISA KEV catalog, indicating no known exploitation activity as of this analysis. Attackers may exploit the issue by crafting form data with deeply nested field names, a scenario that is feasible remotely from outside the application. Successful exploitation results in request failure or server crash, impairing availability of the affected services.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Axios to a non‑vulnerable version (0.33.0 or newer, or 1.18.0 or newer).
  • Validate or limit the depth of FormData field names before passing them to axios, rejecting names with excessively nested brackets.
  • Add robust error handling for RangeError exceptions around axios calls to prevent process termination, addressing CWE-606, and consider configuring the server to isolate the impacted endpoint.

Generated by OpenCVE AI on August 4, 2026 at 11:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pmv8-rq9r-6j72 Axios: Deep formToJSON Key Recursion Can Cause Denial of Service
History
Type Values Removed Values Added
Title axios 0.28.0 before 0.33.0 Denial of Service via formToJSON axios 0.28.0 before 0.33.0 and 1.0.0 before 1.18.0 Denial of Service via formToJSON
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
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.
Title axios 0.28.0 before 0.33.0 Denial of Service via formToJSON
First Time appeared Axios
Axios axios
Weaknesses CWE-400
CPEs cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
Vendors & Products Axios
Axios axios
References
Metrics cvssV4_0

{'score': 6.3, '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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-606

    Unchecked Input for Loop Condition

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Jul 29, 2026, 1:06 PM
Status
Analyzed
Published
Aug 1, 2026, 1:17 PM
Modified
Sep 1, 2026, 3:40 PM
Severity
Important
Public date
Aug 1, 2026, 12:22 PM