Prototype Pollution Vulnerability in Axios Package: Nested Option Objects Exploitable

axios Updated 02 Sep 2026

Summary

01/08/2026
MODERATE
No i
Moderate
3.7

GHSA-9wx3-p993-35vp: Duplicate Advisory: Axios: Nested axios option objects can consume polluted prototype values. Affects axios versions >= 1.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Axios is a popular JavaScript library used for making HTTP requests from both the browser and Node.js. It simplifies the process of sending asynchronous HTTP requests to REST endpoints and performing CRUD operations. The library is widely adopted due to its ease of use, promise-based architecture, and ability to handle requests and responses seamlessly. However, a vulnerability exists in certain versions of Axios that allows for prototype pollution through nested option objects, potentially leading to unauthorized access and data manipulation.

Vulnerability Detail

The vulnerability arises from the way Axios handles nested request option objects. In versions prior to 0.33.0 and 1.x before 1.18.0, Axios can consume inherited properties from these nested objects when the Object.prototype has been polluted. This means that if an application passes placeholder nested objects like auth: {} or paramsSerializer: {}, inherited properties such as username/password can be injected silently, leading to unauthorized Authorization headers. This vulnerability is particularly dangerous in environments where prototype pollution is already present, allowing attackers to manipulate query-string serialization and potentially execute malicious code.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using nested option objects that could inherit properties from the prototype. Instead, explicitly define your options without relying on empty objects. For example, instead of using auth: {}, define your authentication parameters directly: auth: { username: 'yourUsername', password: 'yourPassword' }.

Conclusion

The prototype pollution vulnerability in Axios poses a significant risk to applications using affected versions. By updating to version 1.18.0 or later, developers can protect their applications from potential exploitation. Additionally, using tools like Vulert can help monitor for vulnerabilities in real-time, ensuring that your software remains secure.

See every vulnerability recorded for axios →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that allows an attacker to manipulate an object's prototype, potentially leading to unauthorized access or modification of properties in JavaScript applications.

Axios versions before 0.33.0 and 1.x before 1.18.0 are affected by this prototype pollution vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json, it can help you determine if your application is affected by this vulnerability.

If exploited, this vulnerability can lead to unauthorized access to sensitive information, such as credentials, and can allow attackers to manipulate application behavior through injected properties.

While the best solution is to update to a patched version, you can mitigate the issue by avoiding the use of nested option objects that may inherit properties from the prototype.

Related vulnerabilities

Recent vulnerabilities recorded for axios.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback