CVE-2025-58754Axios is vulnerable to DoS attack through lack of data size check
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.4%
- percentile 73%
- Fix
- Named by a source
- CVE published 12 Sept 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.4% (+1) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- axios (npm): upgrade to 1.12.0 / 0.30.2 or later on your release line.
- Patch: https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593
- Patch: https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67
- Patch: https://github.com/axios/axios/pull/7011
- Commit / pull request: https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06
- Commit / pull request: https://github.com/axios/axios/pull/7034
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-58754
Who should check
axios (npm) pkg:npm/axios
- Affected>= 1.0.0, < 1.12.0Fixed in1.12.0OSV (GHSA-4hjh-wcwx-xvwj)
- Affected>= 0.28.0, < 0.30.2Fixed in0.30.2OSV (GHSA-4hjh-wcwx-xvwj)
axios axios product:axios/axios
- Affected>= 1.0.0, < 1.12.0Affected range ends before1.12.0as published by CNA (CVE List)
- Affected>= 0.28.0, < 0.30.2Affected range ends before0.30.2as published by CNA (CVE List)
- Affected< 0.30.2Affected range ends before0.30.2as published by CPE data (via the NVD API)
- Affected>= 1.0.0, < 1.12.0Affected range ends before1.12.0as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- CNA ([email protected])
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-770
- Exploitation (CISA SSVC)
- poc
- Automatable (CISA SSVC)
- yes
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 12 Sept 2025Published
References
- patchhttps://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593
- patchhttps://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67
- commit / pull requesthttps://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06
- patchhttps://github.com/axios/axios/pull/7011
- commit / pull requesthttps://github.com/axios/axios/pull/7034
- otherhttps://github.com/axios/axios/releases/tag/v0.30.2
- otherhttps://github.com/axios/axios/releases/tag/v1.12.0
- exploithttps://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-58754
- otherhttps://github.com/axios/axios
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-58754 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-4hjh-wcwx-xvwj (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 49 min ago · osv 48 min ago · nvd 17 min ago · epss 48 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-4hjh-wcwx-xvwj