PatchSiren cyber security CVE debrief
CVE-2026-42042 axios CVE debrief
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 affects applications making cross-origin requests, potentially leading to security bypass. Defenders and developers should verify library versions and configurations to prevent exposure. The vulnerability is fixed in Axios library
- Vendor
- axios
- Product
- Unknown
- CVSS
- MEDIUM 5.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-24
- Original CVE updated
- 2026-11-11
- Advisory published
- 2026-04-24
- Advisory updated
- 2026-11-11
Who should care
Defenders and developers using the Axios library, especially those with applications that make cross-origin requests, should assess their exposure and verify their library versions and configurations.
Why it matters
Defenders should care about CVE-2026-42042 because it affects the Axios library's XSRF token protection logic, potentially causing security bypass in certain deployment contexts, especially those with cross-origin requests. The vulnerability requires verification of library versions and configurations to prevent potential exposure.
- Potential exposure of XSRF tokens to cross-origin servers
- Possible unauthorized requests on behalf of users
- Need for verification of Axios library versions and configurations
- Potential for security bypass in certain deployment contexts
Technical summary
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.
Defensive priority
Defenders should prioritize verifying Axios library versions and configurations to prevent potential XSRF token exposure, especially in applications with cross-origin requests.
Recommended defensive actions
- Verify Axios library versions and configurations to prevent potential XSRF token exposure
- Update Axios library to version 1.15.1 or 0.31.1 or later
- Review application configurations for cross-origin requests
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The Axios library's XSRF token protection logic uses JavaScript truthy/falsy semantics instead of strict boolean comparison for the withXSRFToken config property. This vulnerability is fixed in 1.15.1 and 0.31.1.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-42042 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-42042
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-42042 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-42042
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c
[email protected] - Exploit, Mitigation, Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.