
CVE-2026-40175
Prototype Pollution Gadget → Remote Code Execution & Cloud Compromise
Axios — one of the most popular HTTP clients for JavaScript (browser & Node.js) — contains a critical vulnerability prior to version 1.15.0.
A specific "gadget" attack chain allows attackers to escalate any prototype pollution (even from a third-party dependency) into:
CVSS Score: 10.0 (Critical)
Attack Vector: Network
Complexity: Low
Privileges Needed: None
User Interaction: None
✅ Axios v1.15.0 (and all newer versions)
# Update to the latest secure version
npm install axios@latest
# or using yarn
yarn add axios@latest
# or using pnpm
pnpm update axios
Pro Tip: Always check your lockfile (
package-lock.jsonoryarn.lock) and runnpm auditafter updating.
The vulnerability stems from unsafe handling in Axios that turns a relatively common prototype pollution primitive (from any dependency) into a powerful escalation vector — including header injection and unrestricted cloud metadata exfiltration.
This is especially dangerous in:
Even if your code doesn't directly cause prototype pollution, a vulnerable library elsewhere in your node_modules could be escalated via Axios.
# See which version of axios you're using
npm ls axios
# Audit for vulnerabilities
npm audit | grep -i axios
Also scan your transitive dependencies.
>= 1.15.0npm auditdependabot / renovatesnyk or socket.dev for deeper supply-chain analysisStay secure. Update early. Update often. 🔒
Made with ❤️ for the open-source community