Skip to main content
← All vulnerabilities
CVE-2026-42044GHSA-3W6X-2G7M-8V23

Axios: Invisible JSON Response Tampering via Prototype Pollution Gadget in `parseReviver`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.15.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Axios is a promise based HTTP client for the browser and Node.js. From 1.0.0 to before 1.15.2, he Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution in the application's dependency tree to be escalated into surgical, invisible modification of all JSON API responses — including privilege escalation, balance manipulation, and authorization bypass. The default transformResponse function at lib/defaults/index.js:124 calls JSON.parse(data, this.parseReviver), where this is the merged config object. Because parseReviver is not present in Axios defaults, not validated by assertOptions, and not subject to any constraints, a polluted Object.prototype.parseReviver function is called for every key-value pair in every JSON response, allowing the attacker to selectively modify individual values while leaving the rest of the response intact. This vulnerability is fixed in 1.15.2.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • axios axios

    From 1.0.0 · fixed in 1.15.2

  • axiosnpm

    From 1.0.0 · fixed in 1.15.2

References 1

GitHub · axios/axios