Intel

AIKIDO-2026-60497

axios is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 6 days ago

59

Medium Risk

This Affects:

JSaxios
1.12.0 - 1.18.1
Fixed in 1.19.0
Are you affected? Scan for Free

TL;DR

estimateDataURLDecodedBytes() undercounts the decoded byte size of a percent-embedded base64 data: URL, ignoring padding and percent-encoded content when checking a data: URL request against maxContentLength. A crafted data: URL can therefore carry a real decoded payload far larger than the configured limit while passing the pre-check, forcing axios to allocate and process an oversized buffer. The fix recomputes the estimate to include percent-encoded bytes and padding while excluding URL fragments, and the Node HTTP adapter now bounds the raw Buffer allocation to that corrected estimate.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you set maxContentLength while your application requests or otherwise processes data: URL responses that can contain percent-encoded content.

Background info

axios is vulnerable to Denial of Service (DoS) in versions 1.12.0 - 1.18.1.

How to fix this

Upgrade the axios library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform