axios is vulnerable to Denial of Service (DoS)
59
Medium Risk
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.
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.
axios is vulnerable to Denial of Service (DoS) in versions 1.12.0 - 1.18.1.
Upgrade the axios library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.