CVE-2025-58754

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*

History

19 Oct 2026, 17:10

Type Values Removed Values Added
Summary
  • (es) Axios es un cliente HTTP basado en promesas para el navegador y Node.js. Cuando Axios, a partir de la versión 0.28.0 y anterior a las versiones 0.30.2 y 1.12.0, se ejecuta en Node.js y se le proporciona una URL con el esquema 'data:', no realiza HTTP. En su lugar, su adaptador http de Node decodifica la carga útil completa en memoria ('Buffer'/'Blob') y devuelve una respuesta sintética 200. Esta ruta ignora 'maxContentLength' / 'maxBodyLength' (que solo protegen las respuestas HTTP), por lo que un atacante puede proporcionar una URI 'data:' muy grande y hacer que el proceso asigne memoria ilimitada y colapse (DoS), incluso si el llamador solicitó 'responseType: 'stream''. Las versiones 0.30.2 y 1.12.0 contienen un parche para el problema.

Information

Published : 2025-09-12 02:15

Updated : 2026-10-19 17:10


NVD link : CVE-2025-58754

Mitre link : CVE-2025-58754

CVE.ORG link : CVE-2025-58754


JSON object : View

Products Affected

axios

  • axios
CWE
CWE-770

Allocation of Resources Without Limits or Throttling