Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. axios
  4. ›
  5. CVE-2026-42039

CVE-2026-42039: Axios: unbounded recursion in toFormData causes DoS via deeply nested request data

May 5, 2026

toFormData recursively walks nested objects with no depth limit, so a deeply nested value passed as request data crashes the Node.js process with a RangeError.

References

  • github.com/advisories/GHSA-62hf-57xw-28j9
  • github.com/axios/axios
  • github.com/axios/axios/security/advisories/GHSA-62hf-57xw-28j9
  • nvd.nist.gov/vuln/detail/CVE-2026-42039

Code Behaviors & Features

Detect and mitigate CVE-2026-42039 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.31.1, all versions starting from 1.0.0 before 1.15.1

Fixed versions

  • 1.15.1
  • 0.31.1

Solution

Upgrade to versions 0.31.1, 1.15.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/axios/CVE-2026-42039.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:20:40 +0000.