Description
axios versions 0.31.1 before 0.33.0 and 1.15.1 before 1.18.0 contain an incomplete depth-limit bypass in toFormData.js when serializing objects with top-level keys ending in '{}'. Attackers who control object keys and nested values passed to axios form or parameter serialization can trigger a RangeError from JSON.stringify, causing denial of service in the affected request path.
Published: 2026-08-01
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

axios before version 0.33.0 exposes a flaw in the toFormData.js module where the depth limit is not fully enforced when serializing objects with top‑level keys that end in '{}'. If an attacker can supply such keys and nested values, the JSON.stringify call will recurse without bound, triggering a RangeError that aborts the current request. This results in an application‑level denial of service, affecting the availability of services that rely on axios for request serialization. The weakness is mapped to CWE‑674, describing an uncontrolled recursion or invalid recursion depth.

Affected Systems

The affected product is the popular Axios HTTP client for Node.js, specifically all releases prior to 0.33.0. Any Node.js application that imports Axios and uses its form or parameter serialization features is vulnerable, regardless of the surrounding environment or configuration.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium severity. Because no EPSS is available, the likelihood of exploitation cannot be quantified precisely, but the vulnerability is not listed in CISA's KEV catalog. The attack vector is inferred to be remote: a maliciously crafted HTTP request carrying a payload that satisfies Axios's form or query parameter serialization can trigger the crash. No elevated privileges or code execution are required; the attack merely stops the affected request from completing, making it a classic resource exhaustion problem.

Generated by OpenCVE AI on August 2, 2026 at 02:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Axios to version 0.33.0 or newer, which removes the faulty depth‑limit check.
  • If an upgrade is not immediately feasible, sanitize or validate incoming request data to ensure that object keys do not end with '{}' before passing them to Axios's serialization functions, thereby preventing the uncontrolled recursion.
  • Apply application‑level rate limiting or request throttling to mitigate repeated crash attempts during the remediation window.

Generated by OpenCVE AI on August 2, 2026 at 02:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Description axios before 0.33.0 contains an incomplete depth-limit bypass in toFormData.js when serializing objects with top-level keys ending in '{}'. Attackers who control object keys and nested values passed to axios form or parameter serialization can trigger a RangeError from JSON.stringify, causing denial of service in the affected request path. axios versions 0.31.1 before 0.33.0 and 1.15.1 before 1.18.0 contain an incomplete depth-limit bypass in toFormData.js when serializing objects with top-level keys ending in '{}'. Attackers who control object keys and nested values passed to axios form or parameter serialization can trigger a RangeError from JSON.stringify, causing denial of service in the affected request path.
Title axios before 0.33.0 Denial of Service via maxDepth bypass axios 0.31.1 before 0.33.0 and 1.15.1 before 1.18.0 Denial of Service via maxDepth bypass

Sat, 01 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description axios before 0.33.0 contains an incomplete depth-limit bypass in toFormData.js when serializing objects with top-level keys ending in '{}'. Attackers who control object keys and nested values passed to axios form or parameter serialization can trigger a RangeError from JSON.stringify, causing denial of service in the affected request path.
Title axios before 0.33.0 Denial of Service via maxDepth bypass
First Time appeared Axios
Axios axios
Weaknesses CWE-674
CPEs cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
Vendors & Products Axios
Axios axios
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-02T11:57:56.415Z

Reserved: 2026-07-29T13:07:21.183Z

Link: CVE-2026-67321

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T03:00:13Z

Weaknesses