# CVE-2025-58754: Axios is vulnerable to DoS attack through lack of data size check

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-11T21:07:55.000Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-4hjh-wcwx-xvwj
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- axios axios: >= 1.0.0, < 1.12.0; >= 0.28.0, < 0.30.2; before 0.30.2; from 1.0.0 before 1.12.0
- axios (npm): from 1.0.0 before 1.12.0; from 0.28.0 before 0.30.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj> (exploit, vendor-advisory, web)
- <https://github.com/axios/axios/pull/7011> (issue-tracking, patch, web)
- <https://github.com/axios/axios/pull/7034> (issue-tracking, web)
- <https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593> (patch, web)
- <https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67> (patch, web)
- <https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06> (web)
- <https://github.com/axios/axios/releases/tag/v0.30.2> (release-notes, web)
- <https://github.com/axios/axios/releases/tag/v1.12.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58754> (advisory)
- <https://github.com/axios/axios> (package)

## Sources

- CVE List: [CVE-2025-58754](https://www.cve.org/CVERecord?id=CVE-2025-58754), CVE Terms of Use, modified 2026-01-16
- GitHub Advisory Database: [GHSA-4hjh-wcwx-xvwj](https://github.com/advisories/GHSA-4hjh-wcwx-xvwj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-58754](https://nvd.nist.gov/vuln/detail/CVE-2025-58754), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58754 · Whole record: https://cve.day/CVE-2025-58754.json · Rebuilt by cve.day 2026-11-25T22:59:04.581Z
