Prototype Pollution Vulnerability in Axios: Risk of Malicious Request Manipulation

axios Updated 21 Jul 2026

Summary

20/07/2026
MODERATE
Yes i
Moderate
6.3

GHSA-mmx7-hfxf-jppx: Axios: Prototype pollution gadgets can alter axios request construction. Affects axios across 2 version ranges.

< 0.33.0 >= 1.0.0, < 1.18.0

Fixed in 0.33.0 or 1.18.0, depending on the release line you run. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 requests and handling responses, making it a go-to choice for developers. However, a vulnerability has been identified that allows prototype pollution, which can lead to unauthorized manipulation of request data.

Vulnerability Detail

The vulnerability in Axios arises from its handling of request configurations, specifically when Object.prototype has been polluted by another vulnerability. This allows an attacker to manipulate request bodies in methods like axios.get(), axios.delete(), axios.head(), and axios.options(). If an attacker can control the prototype, they can inject malicious data into requests that do not explicitly set a body, potentially corrupting request semantics. Additionally, low-level usage paths can expose sensitive information through proxy routing or URL serialization, depending on the configuration inherited from the polluted prototype.

How To Fix

Latest published version: 1.20.0 as of 22 Oct 2026

npm install axios@1.20.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.33.0 0.33.0
    npm install axios@0.33.0
  • >= 1.0.0, < 1.18.0 1.18.0
    npm install axios@1.18.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, you can explicitly pass data: undefined in your requests using bodyless method aliases to mitigate the risk of prototype pollution. For example:

axios.get('http://example.com/api', { data: undefined });

Conclusion

The prototype pollution vulnerability in Axios poses a significant risk to applications that rely on this library for HTTP requests. By updating to the patched version or implementing the suggested workaround, developers can mitigate the risks associated with this vulnerability and ensure the integrity of their applications.

See every vulnerability recorded for axios →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to manipulate the prototype of a base object, potentially leading to unauthorized access or modification of properties.

If your application uses Axios and is vulnerable, an attacker could inject malicious data into HTTP requests, leading to unexpected behavior or data exposure.

Axios versions prior to 1.18.0 and 0.33.0 are affected by this vulnerability.

Yes, you can use Vulert to monitor your application for vulnerabilities. By analyzing your package-lock.json file, Vulert can alert you to any open-source vulnerabilities in real-time.

The CVSS score of this vulnerability is 6.3, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for axios.

How To Fix

Latest published version: 1.20.0 as of 22 Oct 2026

npm install axios@1.20.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.33.0 0.33.0
    npm install axios@0.33.0
  • >= 1.0.0, < 1.18.0 1.18.0
    npm install axios@1.18.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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