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 (updated June 8, 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/commit/85132ffba1a77609ea5d101c8a413dea7174932f
  • github.com/axios/axios/releases/tag/v1.15.1
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

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

Fixed versions

  • 0.31.1
  • 1.15.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 Sun, 08 Nov 2026 00:17:11 +0000.