PT-2026-35051 · Npm · Axios

August829

·

Published

2026-04-24

·

Updated

2026-05-18

·

CVE-2026-42042

CVSS v3.1

5.4

Medium

VectorAV: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.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-BE61221
CLEANSTART-2026-LC05413
CVE-2026-42042
GHSA-XX6V-RP6X-Q39C

Affected Products

Axios