CVE-2026-42042
MEDIUMDescription
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.
CVSS v3.1 Score
EPSS — Exploit Prediction
EPSS estimates the probability that this vulnerability will be exploited in the wild within the next 30 days. A higher score means more likely to be exploited.
Weakness Type (CWE)
Affected Products
| Vendor | Product |
|---|---|
| axios | axios |
| axios | axios |
References
Advisories & Patches
Frequently Asked Questions
What is CVE-2026-42042? +
How severe is CVE-2026-42042? +
What products are affected by CVE-2026-42042? +
How do I check if I'm vulnerable to CVE-2026-42042? +
Related Vulnerabilities
NetBox versions 4.3.5 through 4.5.4 contain a remote code execution vulnerability in the RenderTemplateMixin.get_environment_params() method that allows authenticated users with …
Permissive list of allowed inputs in Microsoft Purview allows an authorized attacker to elevate privileges over a network.
OpenClaw before 2026.3.22 contains an incomplete host environment variable sanitization vulnerability in host-env-security-policy.json and host-env-security.ts that allows package-manager environment overrides. …
In JetBrains TeamCity before 2025.07.2 missing Git URL validation allowed credential leakage on Windows
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, an attacker who …
This vulnerability potentially allows unauthorized write operations which may lead to remote code execution. An attacker must already have authenticated …