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.
Published: 2026-09-28
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Prototype pollution leading to data tampering and potential same‑process code execution
Action: Patch Immediately
AI Analysis

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.

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

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

Thu, 01 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 29 Sep 2026 13:15:00 +0000

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


Mon, 28 Sep 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios

Mon, 28 Sep 2026 17:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-01T14:44:46.040Z

Reserved: 2026-09-28T15:55:37.907Z

Link: CVE-2026-101909

cve-icon Vulnrichment

Updated: 2026-10-01T14:44:27.255Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-28T18:17:19.680

Modified: 2026-10-01T15:17:24.670

Link: CVE-2026-101909

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-28T17:42:40Z

Links: CVE-2026-101909 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T05:15:17Z

Weaknesses
  • CWE-1321

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

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes