Uncontrolled Recursion Affecting axios package, versions <0.31.1>=1.0.0 <1.15.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-AXIOS-16299923
  • published26 Apr 2026
  • disclosed24 Apr 2026
  • creditfg0x0

Introduced: 24 Apr 2026

NewCVE-2026-42039  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade axios to version 0.31.1, 1.15.1 or higher.

Overview

axios is a promise-based HTTP client for the browser and Node.js.

Affected versions of this package are vulnerable to Uncontrolled Recursion through the toFormData recursive serializer in lib/helpers/toFormData.js. An attacker can crash a process by supplying a deeply nested object as request data or params, causing unbounded recursion and a call-stack overflow during multipart/form-data or query-string serialization.

CVSS Base Scores

version 4.0
version 3.1