Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. axios
  4. ›
  5. CVE-2026-101909

CVE-2026-101909: Axios: Prototype Pollution Gadget in axios toFormData Options

September 30, 2026

Axios form serialization reads visitor, maxDepth, dots, indexes, metaTokens, and Blob from an internal options object without own-property guards. When Object.prototype has been polluted elsewhere in the same process, those inherited values can change how axios serializes multipart and URL-encoded request bodies.

Axios does not create the prototype pollution source. This is a read-side gadget: axios turns an existing same-process pollution condition into altered request serialization or request failures.

axios v1.18.1 contains a read-side prototype pollution gadget in its form data serialization logic. Six option properties (visitor, maxDepth, dots, indexes, metaTokens, Blob) are read from a plain JavaScript object that inherits from Object.prototype without hasOwnProperty guards. When Object.prototype has been polluted elsewhere in the process a common consequence of compromised transitive npm dependencies, these polluted values silently control axios’ form serialization behavior.

The highest-impact gadget is visitor: a polluted function on Object.prototype.visitor is invoked for every key-value pair during multipart and URL-encoded form serialization, receiving the value, key, path, and internal helper functions as arguments.

References

  • github.com/advisories/GHSA-x97p-jq2g-jp4f
  • github.com/axios/axios/commit/d19040bda7a8be2f82c3c6e1a5bc03917daee39a
  • github.com/axios/axios/commit/d29be181f85f6fe93397a07b1f69606d9622637b
  • github.com/axios/axios/pull/11141
  • github.com/axios/axios/releases/tag/v0.34.0
  • github.com/axios/axios/releases/tag/v1.20.0
  • github.com/axios/axios/security/advisories/GHSA-x97p-jq2g-jp4f
  • nvd.nist.gov/vuln/detail/CVE-2026-101909

Code Behaviors & Features

Detect and mitigate CVE-2026-101909 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.28.0 before 0.34.0, all versions starting from 1.15.1 before 1.20.0

Fixed versions

  • 0.34.0
  • 1.20.0

Solution

Upgrade to versions 0.34.0, 1.20.0 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/axios/CVE-2026-101909.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:05 +0000.