axios is vulnerable to Prototype Pollution
37
Low Risk
The formDataToJSON helper turns dotted multipart names into nested objects using a walk over intermediate path segments. When the runtime already has a polluted Object.prototype, the old property check could follow inherited slots so writes attached to shared prototype state instead of own properties on the result. Replacing that check with an own-property guard shadows inherited keys locally and stops global prototype mutation for attacker-shaped field names. A regression test pins the polluted-prototype scenario.
You are affected if you are using a version that falls within the vulnerable range.
axios is vulnerable to Prototype Pollution in versions 1.0.0 - 1.16.0.
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.

SOC 2Compliant
ISO 27001Compliant