{"id":"CVE-2025-58754","summary":"Axios is vulnerable to DoS attack through lack of data size check","details":"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.","aliases":["GHSA-4hjh-wcwx-xvwj"],"modified":"2026-03-20T12:45:11.888240Z","published":"2025-09-12T01:16:40.513Z","related":["CGA-vpfq-mfvm-wppj"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-770"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58754.json"},"references":[{"type":"WEB","url":"https://github.com/axios/axios/releases/tag/v0.30.2"},{"type":"WEB","url":"https://github.com/axios/axios/releases/tag/v1.12.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58754.json"},{"type":"ADVISORY","url":"https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58754"},{"type":"FIX","url":"https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593"},{"type":"FIX","url":"https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67"},{"type":"FIX","url":"https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06"},{"type":"FIX","url":"https://github.com/axios/axios/pull/7011"},{"type":"FIX","url":"https://github.com/axios/axios/pull/7034"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/axios/axios","events":[{"introduced":"484aa4fe6addccbd32206a31eb3d2d000843066e"},{"fixed":"0d8ad6e1de0f5339e02bc262d6f0df4936974120"}],"database_specific":{"versions":[{"introduced":"1.0.0"},{"fixed":"1.12.0"}]}},{"type":"GIT","repo":"https://github.com/axios/axios","events":[{"introduced":"3b7635aefc842c05da0ec8c90e8bd09cb54616b8"},{"fixed":"2fcb4ec5a11710ac26f9f89cb7d46dd51a1cf013"}],"database_specific":{"versions":[{"introduced":"0.28.0"},{"fixed":"0.30.2"}]}}],"versions":["1.2.0-alpha.1","1.2.2","v0.28.0","v0.28.1","v0.29.0","v0.30.0","v0.30.1","v1.0.0","v1.1.0","v1.1.1","v1.1.2","v1.1.3","v1.10.0","v1.11.0","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.2.4","v1.2.5","v1.2.6","v1.3.0","v1.3.1","v1.3.2","v1.3.3","v1.3.4","v1.3.5","v1.3.6","v1.4.0","v1.5.0","v1.5.1","v1.6.0","v1.6.1","v1.6.2","v1.6.3","v1.6.4","v1.6.5","v1.6.6","v1.6.7","v1.6.8","v1.7.0","v1.7.0-beta.0","v1.7.0-beta.1","v1.7.0-beta.2","v1.7.1","v1.7.2","v1.7.3","v1.7.4","v1.7.5","v1.7.6","v1.7.7","v1.7.8","v1.7.9","v1.8.0","v1.8.1","v1.8.2","v1.8.3","v1.8.4","v1.9.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58754.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}