CVE-2026-42042Axios: XSRF Token Cross-Origin Leakage via Prototype Pollution Gadget in `withXSRFToken` Boolean Coercion
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.3%
- percentile 20%
- Fix
- Named by a source
- CVE published 24 Apr 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.3% (+0) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- axios (npm): upgrade to 1.15.1 / 0.31.1 or later on your release line.
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-42042
Who should check
axios (npm) pkg:npm/axios
- Affected>= 1.0.0, < 1.15.1Fixed in1.15.1OSV (GHSA-xx6v-rp6x-q39c)
- Affected< 0.31.1Fixed in0.31.1OSV (GHSA-xx6v-rp6x-q39c)
axios axios product:axios/axios
- Affected>= 1.0.0, < 1.15.1Affected range ends before1.15.1as published by CNA (CVE List)
- Affected< 0.31.1Affected range ends before0.31.1as published by CNA (CVE List)
- Affected< 0.31.1Affected range ends before0.31.1as published by CPE data (via the NVD API)
- Affected>= 1.0.0, < 1.15.1Affected range ends before1.15.1as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.4 MEDIUM (version 3.1)
- Score from
- CNA ([email protected])
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-183, CWE-201
- Exploitation (CISA SSVC)
- poc
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the Axios library's XSRF token protection logic uses JavaScript truthy/falsy semantics instead of strict boolean comparison for the withXSRFToken config property. When this property is set to any truthy non-boolean value (via prototype pollution or misconfiguration), the same-origin check (isURLSameOrigin) is short-circuited, causing XSRF tokens to be sent to all request targets including cross-origin servers controlled by an attacker. This vulnerability is fixed in 1.15.1 and 0.31.1.
Update history
- 24 Apr 2026Published
References
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-42042 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-xx6v-rp6x-q39c (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 32 min ago · osv 32 min ago · nvd just now · epss 32 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-xx6v-rp6x-q39c