CVE-2026-42042

Description

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.

Severity
MEDIUM
CVSS v3
5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N · source cna
Exploit chance (EPSS)
0.210%
chance of exploitation in the next 30 days
higher than 11.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2026-04-27

Timeline

  1. 2026-04-24Published by the CNA18:03 UTC
  2. 2026-04-27CISA SSVC decision recorded3 days after publication
  3. 2026-05-05GitHub advisory published (GHSA-xx6v-rp6x-q39c)11 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-xx6v-rp6x-q39c, affected packages:

PackageVulnerable versionsFixed in
npm axiosbefore 0.31.10.31.1
npm axiosfrom 1.0.0 before 1.15.11.15.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
axios axiosbefore 0.31.1fixed in 0.31.1from 1.0.0 before 1.15.1fixed in 1.15.10.31.11.15.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources