Vulnerability
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.
211 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-2mxq-vjph-hv86
- CGA-2vw7-88v9-5pqw
- CGA-2wrq-4p32-qw2m
- CGA-3h68-fvj4-c4g4
- CGA-44r5-j87q-fpwj
- CGA-47j4-m72j-44pp
- CGA-4m62-qf63-xrrq
- CGA-5f38-w55x-wr62
- CGA-5gqx-8p95-wx25
- CGA-5vj2-9xh4-rwf5
- CGA-653g-rvc5-w3hr
- CGA-69x3-67v8-38x5
- CGA-7mpc-gpp8-4q58
- CGA-9w7m-wmc4-rc7f
- CGA-cx2q-3pcg-cw8q
- CGA-fmfj-g26f-qrhv
- CGA-g32v-8g98-xg7w
- CGA-g3c9-f236-hq6m
- CGA-gh9w-fg5h-x8x5
- CGA-h5g5-7w72-4r4r
- CGA-hg6j-2f7p-97vw
- CGA-hgvx-rfj4-grjg
- CGA-hpjm-m2c8-5pgv
- CGA-j3hq-337h-v5c8
- CGA-jcm5-g5gc-hg2r
- CGA-jfp8-9w3x-8v9h
- CGA-jvh8-432q-87jf
- CGA-m362-62mr-536w
- CGA-m8xj-x96m-wc8g
- CGA-mg9c-cfwm-fw2q
- CGA-mq73-vff3-mf79
- CGA-mww8-5prx-j4ww
- CGA-q2r4-2p7x-p29v
- CGA-q3rj-gc22-jpwg
- CGA-q85m-f7fq-wccj
- CGA-qg6q-crmc-6whc
- CGA-qppw-w5vw-2734
- CGA-r69j-8mmm-p3v9
- CGA-rq8q-4qq4-jh7g
- CGA-v2j3-jc3w-9xc7
- CGA-v64q-f632-wf2w
- CGA-wj3r-v63g-fwc9
- CGA-wrpx-j2vp-vf6w
- CGA-x526-8p68-3c28
- CGA-xmpf-3252-c5h2