Vulnerability
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.
173 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-2423-7jvr-hjmx
- CGA-298c-5xj2-v4q6
- CGA-36vc-rc7q-jrfx
- CGA-3hq3-v5wj-6qv2
- CGA-43x2-757c-2f8r
- CGA-49gc-8h5w-669w
- CGA-4fwm-r862-h754
- CGA-4j6f-6xpc-c7w5
- CGA-4jg4-9h82-266r
- CGA-4pr6-hjxm-325r
- CGA-4qpf-622j-8m22
- CGA-52wm-9mf3-75jm
- CGA-5pxx-w5v6-p2c4
- CGA-5vwm-h5xc-vq2p
- CGA-6374-g7r2-jf84
- CGA-67j7-wp45-mwfm
- CGA-6vhw-v7gf-97cx
- CGA-762j-mv3c-4fxr
- CGA-79p6-jjwv-pgrg
- CGA-7j6c-64qh-4j74
- CGA-7p5w-5c4r-5crh
- CGA-8j47-gwgj-vw87
- CGA-9vm8-gqgc-3jr9
- CGA-9vr4-p5h3-rmv9
- CGA-9wc6-7pp8-5c44
- CGA-cpgm-5693-gxp9
- CGA-f929-73r4-hr5m
- CGA-frvc-j4fg-4gpm
- CGA-h5c7-wgm9-j4wf
- CGA-h87v-9m7h-cwjw
- CGA-hh7x-r3fm-c55r
- CGA-hx4r-f2xf-f9r2
- CGA-j6v6-q8rh-mchj
- CGA-j7cm-2p78-h73c
- CGA-m28p-rj83-667w
- CGA-m84j-42r2-9p82
- CGA-mq52-26xw-p3xj
- CGA-prcj-2r4f-m82q
- CGA-qg7x-j26r-794c
- CGA-r2qf-r2fp-fjpx
- CGA-r3jr-6q44-7748
- CGA-r4rm-mf2g-cvx9
- CGA-r97w-hmwr-qv6v
- CGA-rj2m-2629-9mqc
- CGA-v4hx-rhj2-x7q3
- CGA-v6pg-6896-mw7v
- CGA-v9wc-2pp9-j9v4
- CGA-vh9p-9pww-r42x
- CGA-vv26-vpc8-ffr7
- CGA-vw4c-75mv-gh8f
- CGA-vx52-3q2q-h58f
- CGA-wjgx-5r44-2wqv
- CGA-wp9p-2g4m-m6gr
- CGA-wpv7-mhfr-f78h
- CGA-wv44-24w3-vhw5
- CGA-wxfv-wwx7-f3p6
- CGA-x555-jffp-jjxm
- CGA-x567-8rqx-prg3
- CGA-x66c-76jq-c55f
- CGA-x6c2-fp7j-7xqh
- CGA-x72j-qjmp-f72f
- CGA-x9hf-97cx-pfpq
- CGA-xrp3-7grx-2xwp
References
- https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593
- https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67
- https://github.com/axios/axios/commit/c30252f685e8f4326722de84923fcbc8cf557f06
- https://github.com/axios/axios/pull/7011
- https://github.com/axios/axios/pull/7034
- https://github.com/axios/axios/releases/tag/v0.30.2
- https://github.com/axios/axios/releases/tag/v1.12.0
- https://github.com/axios/axios/security/advisories/GHSA-4hjh-wcwx-xvwj