CVE-2025-58754
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability in the Axios library (CVE-2025-58754) was discovered affecting versions prior to 1.12.0. The flaw allows attackers to crash Node.js processes by exploiting the way Axios handles data: URLs. The vulnerability was disclosed on September 11, 2025, and received a CVSS score of 7.5 (High severity) (Security Online, GitHub Advisory).

Technical details

The vulnerability stems from Axios's Node http adapter's handling of data: scheme URLs. When processing such URLs, Axios decodes the entire Base64 payload into memory without enforcing size limits or performing sanity checks. Unlike HTTP responses which respect maxContentLength and maxBodyLength limits, data: URIs bypass these protections, allowing attackers to cause unbounded memory allocation. The issue specifically lies in the fromDataURI function, which decodes the entire payload into a Buffer without size verification (GitHub Advisory).

Impact

The vulnerability can lead to Denial of Service (DoS) attacks by causing Node.js processes to crash through memory exhaustion. Even if developers configure Axios with size limits, those protections are ineffective for data: URIs, allowing attackers to trigger out-of-memory conditions with crafted requests (Security Online).

Mitigation and workarounds

The vulnerability has been patched in Axios version 1.12.0. Users are strongly encouraged to upgrade immediately. For those unable to update, the recommended mitigation strategies include enforcing size limits by inspecting Base64 payload lengths before decoding and implementing streaming Base64 decoders to process chunks incrementally (Security Online, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58754HIGH7.5
  • JavaScriptJavaScript
  • grafana-prometheus
NoYesSep 12, 2025
CVE-2025-59049HIGH7.5
  • JavaScriptJavaScript
  • @mockoon/cli
NoYesSep 10, 2025
CVE-2025-59052HIGH7.1
  • JavaScriptJavaScript
  • @nguniversal/common
NoYesSep 10, 2025
CVE-2025-59139MEDIUM5.3
  • JavaScriptJavaScript
  • hono
NoYesSep 12, 2025
CVE-2025-9910LOW1.3
  • JavaScriptJavaScript
  • jsondiffpatch
NoYesSep 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management