CVE-2026-42042

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.
References
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Axios es un cliente HTTP basado en promesas para el navegador y Node.js. Antes de las versiones 1.15.1 y 0.31.1, la lógica de protección de tokens XSRF de la biblioteca Axios utiliza la semántica truthy/falsy de JavaScript en lugar de una comparación booleana estricta para la propiedad de configuración withXSRFToken. Cuando esta propiedad se establece en cualquier valor truthy no booleano (a través de la contaminación de prototipos o una mala configuración), la verificación de mismo origen (isURLSameOrigin) se cortocircuita, lo que provoca que los tokens XSRF se envíen a todos los destinos de solicitud, incluidos los servidores de origen cruzado controlados por un atacante. Esta vulnerabilidad se corrige en las versiones 1.15.1 y 0.31.1.

27 Apr 2026, 20:05

Type Values Removed Values Added
References () https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c - () https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c - Exploit, Mitigation, Vendor Advisory
CPE cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*
First Time Axios
Axios axios

27 Apr 2026, 18:16

Type Values Removed Values Added
References () https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c - () https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c -

24 Apr 2026, 18:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-24 18:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-42042

Mitre link : CVE-2026-42042

CVE.ORG link : CVE-2026-42042


JSON object : View

Products Affected

axios

  • axios
CWE
CWE-183

Permissive List of Allowed Inputs

CWE-201

Insertion of Sensitive Information Into Sent Data