{"id":"CVE-2025-58754","published":"2025-09-12T01:16:40Z","modified":"2026-01-16T14:50:09Z","title":"Axios is vulnerable to DoS attack through lack of data size check","vendor":"axios","product":"axios","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01196,"percentile":0.68878,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/axios/axios/pull/7011","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/pull/7034","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/releases/tag/v0.30.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/axios/axios/releases/tag/v1.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":13.78},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"axios","affectedVersions":[{"vendor":"axios","product":"axios","versions":[">= 1.0.0, < 1.12.0",">= 0.28.0, < 0.30.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-12T13:08:38.895896Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"axios","vulnerableRanges":[">=1.0.0, <1.12.0",">=0.28.0, <0.30.2"],"patched":["1.12.0","0.30.2"],"from":["GHSA-4hjh-wcwx-xvwj"],"provenance":"source"}],"summary":{"text":"Axios, a promise-based HTTP client for browsers and Node.js, mishandles URLs using the data: scheme in its Node.js http adapter, decoding the entire payload into memory without enforcing maxContentLength or maxBodyLength. An attacker who can supply a URL to an affected Axios instance on Node.js, with no authentication or user interaction required, can send an extremely large data: URI to exhaust memory and crash the process, even when the caller requested a streamed response.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:25Z"},"euvd":{"id":"EUVD-2025-28992","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-45857","published":"2023-11-08","fixed":"1.6.0","kev":false},{"cve":"CVE-2024-39338","published":"2024-08-09","fixed":"1.7.4","kev":false},{"cve":"CVE-2025-27152","published":"2025-03-07","fixed":"1.8.2","kev":false,"link":{"from":"CVE-2025-27152","to":"CVE-2025-58754","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"1.8.2","toFixed":"1.12.0","daysApart":189},{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"0.30.0","toFixed":"0.30.2","daysApart":189},{"kind":"same-code","provenance":"machine","files":["lib/adapters/http.js"],"commits":["https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f","https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593","https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67"],"basis":"shared file"}]}},{"cve":"CVE-2025-58754","published":"2025-09-12","fixed":"1.12.0","kev":false},{"cve":"CVE-2026-39865","published":"2026-04-08","fixed":"1.13.2","kev":false},{"cve":"CVE-2026-25639","published":"2026-02-09","fixed":"1.13.5","kev":false,"link":{"from":"CVE-2025-58754","to":"CVE-2026-25639","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"0.30.2","toFixed":"0.30.3","daysApart":150},{"kind":"same-code","provenance":"machine","files":["lib/utils.js"],"commits":["https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593","https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67","https://github.com/axios/axios/commit/28c721588c7a77e7503d0a434e016f852c597b57","https://github.com/axios/axios/commit/d7ff1409c68168d3057fc3891f911b2b92616f9e"],"basis":"shared file"}]}},{"cve":"CVE-2025-62718","published":"2026-04-09","fixed":"1.15.0","kev":false}],"package":"npm:axios"}}