Intel

AIKIDO-2026-10509

axios is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 20, 2026

52

Medium Risk

This Affects:

JSaxios
0.0.1 - 0.31.0
Fixed in 0.31.1
1.0.0 - 1.15.0
Fixed in 1.15.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to prototype pollution–based header injection due to unsafe FormData detection and header merging logic. The affected implementation may treat attacker-controlled plain objects as valid FormData instances and invoke inherited getHeaders methods from polluted prototypes, allowing malicious headers such as forged authorization values to be merged into outbound requests. In addition, query parameter encoding improperly handles null-byte values, which can lead to unexpected parameter transformations. An attacker able to influence object prototypes or request data can inject unauthorized headers or manipulate request processing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

axios is vulnerable to Prototype Pollution in versions 1.0.0 - 1.15.0 and 0.0.1 - 0.31.0.

How to fix this

Upgrade the axios library to the patch version.