CVE Catalog

CVE-2025-58754

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.14%

66th percentile - higher than 66% of all known CVEs

Summary

Axios versions 0.28.0 to 0.30.2 and 1.12.0, when running on Node.js and given a URL with the `data:` scheme, does not perform HTTP but decodes the entire payload into memory (Buffer/Blob) and returns a synthetic 200 response. This path ignores `maxContentLength`/`maxBodyLength`, so an attacker can supply a very large `data:` URI and cause unbounded memory allocation and crash (DoS), even with `responseType: 'stream'`. Patched in versions 0.30.2 and 1.12.0.

Risk Assessment

An attacker could cause a denial-of-service by crashing the Node.js process through memory exhaustion, leading to service unavailability.

Recommendation

Update Axios to version 0.30.2, 1.12.0, or later. Avoid processing untrusted URLs with the `data:` scheme.

Other vulnerabilities in Axios

See all
Original NVD description (English source)

Axios is a promise based HTTP client for the browser and Node.js. When Axios starting in version 0.28.0 and prior to versions 0.30.2 and 1.12.0 runs on Node.js and is given a URL with the `data:` scheme, it does not perform HTTP. Instead, its Node http adapter decodes the entire payload into memory (`Buffer`/`Blob`) and returns a synthetic 200 response. This path ignores `maxContentLength` / `maxBodyLength` (which only protect HTTP responses), so an attacker can supply a very large `data:` URI and cause the process to allocate unbounded memory and crash (DoS), even if the caller requested `responseType: 'stream'`. Versions 0.30.2 and 1.12.0 contain a patch for the issue.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS