# CVE-2026-42042: Axios: XSRF Token Cross-Origin Leakage via Prototype Pollution Gadget in \`withXSRFToken\` Boolean Coercion

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-24 · Modified: 2026-04-27
- Aliases: UBUNTU-CVE-2026-42042, DEBIAN-CVE-2026-42042, 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, GHSA-xx6v-rp6x-q39c, CGA-2232-824h-c4pc, CGA-2897-qmw6-v252, CGA-2gcv-h5rg-6wvq, CGA-3729-c878-v4pw, CGA-3889-fpg6-wwv8, CGA-38r9-74w2-6768, CGA-3cc9-j6hf-9c29, CGA-3pcg-w8vj-wh25, CGA-3r95-jjrw-f78q, CGA-3rj4-fqfj-99qx, CGA-3x4m-rw6q-542p, CGA-4264-3563-wc37, CGA-427q-8f4w-78hw, CGA-42qh-qwgx-xfj6, CGA-467r-fvc8-c822, CGA-4927-fc3h-j25x, CGA-4g8x-fq8h-xrx6, CGA-4m5f-499g-f435, CGA-4mjc-x747-4q4q, CGA-4qw7-xwjm-c87r, CGA-54fp-cm6g-rp8x, CGA-56pw-pm6v-mgpc, CGA-57v3-mwqc-vgv4, CGA-5hm2-gp8h-p76q, CGA-5jw5-742x-fqxh, CGA-5mwj-f5wh-8vrj, CGA-62j8-4qw8-r3vr, CGA-632q-qp6c-hc83, CGA-63fv-jrp9-v8wf, CGA-6cmh-9f85-v3xc, CGA-6f2v-vgmx-qqgm, CGA-6m52-cpfr-wr2r, CGA-6mqq-rhp4-26f2, CGA-6w4w-2wf8-xvjp, CGA-74pr-jjf6-73h6, CGA-7735-246x-8xpw, CGA-77g7-g5pw-2r79, CGA-77px-6pfj-76g8, CGA-79xh-47x4-pw4p, CGA-7gv8-jc3f-j4gm, CGA-7h4q-xqmg-6rrj, CGA-7jj7-vxmp-2m32, CGA-7p58-qppv-3xqf, CGA-7r89-g6pf-xmhr, CGA-7wrp-4p38-m5hw, CGA-7wvx-xhwj-768q, CGA-84jj-q625-j9mv, CGA-84pf-5fmj-cvm3, CGA-867f-9v74-6m4v, CGA-8fmv-mrx2-c2x2, CGA-8g5r-56r9-jpw7, CGA-8gxm-2pc5-cq9p, CGA-8jx6-crv7-6hgp, CGA-8rvh-pvgg-9677, CGA-8vgf-qqjc-pqfp, CGA-8x9f-7fgm-375j, CGA-92mh-pmg6-ghvr, CGA-932q-52h5-7xgc, CGA-93vj-75p3-ffw3, CGA-93wj-373j-rw3g, CGA-97m8-x8vg-hfvj, CGA-9f5w-vmf7-48jc, CGA-9qpw-68xr-j864, CGA-9rwv-2crx-jq54, CGA-9x42-g3hc-m72v, CGA-c7j3-2cp7-3x49, CGA-c88f-hvv2-5mr7, CGA-c896-j4q2-vf7c, CGA-c8vr-6986-cj47, CGA-cgh8-92mh-6h9m, CGA-cj95-9996-62ww, CGA-cjcf-mfvg-7wqc, CGA-cvxf-cj94-372w, CGA-cxp7-ggjx-9vjm, CGA-f35h-cjf9-m6m4, CGA-f42j-7f48-2w27, CGA-fcgj-6h2c-j5fh, CGA-ffcf-7gqg-gxm7, CGA-fg92-jwrr-g26f, CGA-fhgc-4gwg-2jgp, CGA-fm84-hw65-67gh, CGA-fw3r-q4j6-fjx8, CGA-gf8w-h22m-5x2r, CGA-gfq4-g2g3-hqfj, CGA-ggxj-3qgj-rg5f, CGA-gvxg-3r73-57j7, CGA-gw6x-3xj7-7973, CGA-h88v-cxpg-x5c4, CGA-h9gm-x3x3-7j23, CGA-hj38-p42h-53cv, CGA-j6v5-v3p5-xx4j, CGA-j75x-9wqj-fwgq, CGA-j87q-r8m8-3fj3, CGA-j8v4-r4mv-6q4m, CGA-jfhc-ff8j-g33h, CGA-jhhx-2hpr-5f5p, CGA-jr55-p3rq-5qjp, CGA-jr94-c93f-m9qc, CGA-jv8v-5529-q86p, CGA-jvc8-8878-j598, CGA-m233-59j7-2wv7, CGA-m629-fwhc-46mh, CGA-m9f5-x56v-jgh4, CGA-mgqx-48qg-86cp, CGA-mj35-c66r-3x5v, CGA-mjqw-v8rj-m62g, CGA-mp54-7qq7-cw5r, CGA-p4c9-28vj-jfqw, CGA-p4m3-3xxq-qpwv, CGA-p8qq-96h3-gqf4, CGA-p9hp-5j3q-73qm, CGA-p9xh-fc9v-6m83, CGA-pcjw-j7v2-w7q3, CGA-pq9h-gg69-g834, CGA-pwmv-737p-cxxj, CGA-q3hw-ww3v-jgx6, CGA-q755-2g8g-5j2m, CGA-qcrc-h2cg-f97j, CGA-qppc-jpg4-9m92, CGA-qpqh-c84r-gw87, CGA-qq22-v8w6-7pm4, CGA-qqpv-3544-5vmq, CGA-qr73-jgr9-7759, CGA-qv6q-2gj8-8r2q, CGA-qw8j-xqr9-mqg4, CGA-r42m-qh68-r8m9, CGA-r64f-2853-4m74, CGA-r9qw-hp4c-98rm, CGA-rcmc-p5q5-9jpg, CGA-rf2r-xw43-vw4q, CGA-rhhf-rg59-q2xc, CGA-rj38-93g4-v8w8, CGA-rwjj-285g-8g82, CGA-rxgc-8pgv-8q69, CGA-v3r7-j5pq-233f, CGA-v3wr-jp7r-qrgj, CGA-v4g3-537f-fx97, CGA-v72f-r4rq-v2wp, CGA-v929-fhpq-wh7w, CGA-v9rh-jjwq-x5rh, CGA-vrg5-fxwj-qr8p, CGA-vrh8-8cr7-px32, CGA-w2f6-5rq2-h35r, CGA-w4hc-f2gg-5f2c, CGA-w7hc-gv9f-4mc5, CGA-w9wx-3jq7-q2r9, CGA-wf4x-mr96-wr55, CGA-wg5p-57m5-wm6h, CGA-wqrp-v2h7-j78h, CGA-wrgg-pghq-9hxp, CGA-wrv8-386f-m7q7, CGA-wwxx-j6c3-4m26, CGA-wx78-3pcg-r94j, CGA-wx9v-v7g3-w8qr, CGA-x326-g679-v66h, CGA-x3ch-4rmr-hr94, CGA-x5mc-qp92-p2q3, CGA-x74j-pmxp-g7jh, CGA-xmqv-jpf3-9fp2, CGA-xp3c-j4jg-35jg, CGA-xqp9-55pr-8rm3, CGA-xv3c-9xf2-qcg4
- Record: https://cvemate.com/vulnerability/CVE-2026-42042 · JSON: https://cvemate.com/vulnerability/CVE-2026-42042/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.193%, percentile 9.367%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 101)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r14
- chainguard awx (Chainguard): \< 24.6.1-r42
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): \< 18.10.8-r8 \| All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0 \| \< 18.11.6-r7
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.3-r7 \| \< 19.1.7-r6
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.4-r4 \| \< 19.2.5-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.1-r6 \| \< 19.3.1-r4
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.12-r2 \| \< 18.11.7-r1
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c>
- <https://ubuntu.com/security/CVE-2026-42042>
- <https://www.cve.org/CVERecord?id=CVE-2026-42042>
- <https://security-tracker.debian.org/tracker/CVE-2026-42042>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42042.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42042>
- <https://github.com/axios/axios>

---

Data as of 2026-12-05T11:52:04.735Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
