CVE-2026-101909

Axios: Prototype Pollution Gadget in axios toFormData Options

Published Sep 28, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
Axios is a promise-based HTTP client for the browser and Node.js. From 0.28.0 until 0.34.0 and 1.15.1 until 1.20.0, ToFormData processes inherited serialization options and visitor properties supplied through prototype pollution. A separate same-process prototype-pollution flaw supplies inherited dots, indexes, metaTokens, maxDepth, visitor, or Blob values before object serialization. The inherited options alter toFormData field naming and data interpretation, maxDepth can force request failure, Blob changes value handling, and a polluted visitor can execute when an attacker already has the stronger ability to inject a function. Serialized field naming and data interpretation can change, maxDepth can cause request failure, Blob can alter value handling, and a polluted visitor can execute under the stronger function-injection primitive. This issue is fixed in versions 0.34.0 and 1.20.0.

Analysis

AI-generated

Technical impact

Axios, a widely used HTTP client for browsers and Node.js, processes objects through its toFormData helper. Between versions 0.28.0 and 0.34.0 and 1.15.1 and 1.20.0 the helper unintentionally inherited serialization options and visitor properties from a polluted prototype. This allowed an attacker to alter field naming, change how data is interpreted, force request failures by overriding maxDepth, modify Blob handling, and, if the attacker already possessed a function‑injection primitive, trigger execution of a function during serialization. The result is that crafted data can corrupt request payloads or, in the presence of additional exploitation capabilities, execute code within the same process.

Affected Systems

The axios:axios package is affected. Releases from 0.28.0 through 0.34.0 and from 1.15.1 through 1.20.0 contain the flaw. The issue was fixed in v0.34.0 and v1.20.0, so any newer release is not vulnerable.

Risk and Exploitability

The CVSS score of 8.3 classifies this vulnerability as High severity. The EPSS score of <1% indicates a very low likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local or same‑process: an attacker who can influence the JavaScript environment that invokes axios.toFormData can set prototype properties. Under those conditions the attacker can corrupt the request payload or, if additional code‑execution primitives exist, run malicious code in the same process. In environments where Axios runs with elevated privileges or handles sensitive data, the risk is greater; otherwise the threat remains limited to data integrity and request reliability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade axios to version 0.34.0 or later (or 1.20.0 or later) to remove the prototype‑pollution handling bug.
  • If upgrading is not immediately possible, avoid calling toFormData with objects that may originate from untrusted input; validate or sanitize the data and clear any inherited prototype properties before serialization.
  • Audit current Axios usage for prototype contamination, ensuring that Object.setPrototypeOf is not used to modify payload prototypes and that no external code can inject prototype properties.

Generated by OpenCVE AI on September 30, 2026 at 05:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x97p-jq2g-jp4f Axios: Prototype Pollution Gadget in axios toFormData Options
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-915
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios
Type Values Removed Values Added
Description Axios is a promise-based HTTP client for the browser and Node.js. From 0.28.0 until 0.34.0 and 1.15.1 until 1.20.0, ToFormData processes inherited serialization options and visitor properties supplied through prototype pollution. A separate same-process prototype-pollution flaw supplies inherited dots, indexes, metaTokens, maxDepth, visitor, or Blob values before object serialization. The inherited options alter toFormData field naming and data interpretation, maxDepth can force request failure, Blob changes value handling, and a polluted visitor can execute when an attacker already has the stronger ability to inject a function. Serialized field naming and data interpretation can change, maxDepth can cause request failure, Blob can alter value handling, and a polluted visitor can execute under the stronger function-injection primitive. This issue is fixed in versions 0.34.0 and 1.20.0.
Title Axios: Prototype Pollution Gadget in axios toFormData Options
Weaknesses CWE-1321
References
Metrics cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 1, 2026, 2:44 PM
Reserved
Sep 28, 2026, 3:55 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 6:17 PM
Modified
Oct 1, 2026, 3:17 PM
Severity
Important
Public date
Sep 28, 2026, 5:42 PM