PT-2026-35051 · Npm · Axios

Published

2026-04-24

·

Updated

2026-04-25

·

CVE-2026-42042

CVSS v3.1

5.4

Medium

AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Axios versions prior to 0.31.1 Axios versions prior to 1.15.1
Description The 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, 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.
Recommendations Update to version 0.31.1 or later. Update to version 1.15.1 or later.

Fix

Weakness Enumeration

Related Identifiers

CVE-2026-42042

Affected Products

Axios