axios is vulnerable to Prototype Pollution
59
CVE Score
Medium
Prototype Pollution
The Node HTTP adapter builds its redirect options with a plain beforeRedirects: {} object, so dispatchBeforeRedirect looks up its hook on an object that still inherits from Object.prototype. A polluted prototype property reachable at the key the redirect dispatcher checks can therefore run during a redirect and rewrite the request's destination, host, or headers before the redirected request is sent. The fix builds beforeRedirects on a null-prototype object so no inherited hook is reachable.
Upgrade the axios library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and a separate prototype-pollution primitive elsewhere in your application can reach Object.prototype.
0.28.0 - 0.33.0
Fixed in 0.34.0axios is vulnerable to Prototype Pollution in versions 0.28.0 - 0.33.0.
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.