axios is vulnerable to Denial of Service (DoS)
59
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the axios library to the patch version.
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.
1.12.0 - 1.18.1
Fixed in 1.19.0axios is vulnerable to Denial of Service (DoS) in versions 1.12.0 - 1.18.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.