
CVE catalog
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 b
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.21% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-axios | sid | 1.20.0-1 | fixed |
| Debian | node-axios | forky | 1.20.0-1 | fixed |
| Debian | node-axios | trixie | 1.8.4+dfsg-1 | vulnerable |
| Debian | node-axios | bookworm | 1.2.1+dfsg-1+deb12u1 | vulnerable |
| Cpe | node-axios | Not reported | Not reported | vulnerable |
| Cpe | axios | Not reported | 0.31.1 | fixed |
| Cpe | axios | Not reported | 1.15.1 | fixed |
| Npm | axios | Not reported | 0.31.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-axios | source | sid | 1.15.2-1 | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | forky | 1.15.2-1 | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | trixie | (unfixed) | not yet assigned | Not reported | [1134878] |
| Debian | node-axios | source | bookworm | (unfixed) | not yet assigned | Not reported | [1134878] |
| Cpe | axios | cpe | Not reported | 0.31.1 | Not reported | Not reported | Not reported |
| Cpe | axios | cpe | Not reported | 1.15.1 | Not reported | Not reported | Not reported |
| Npm | axios | npm | Not reported | 0.31.1 | Not reported | GHSA-XX6V-RP6X-Q39C | Not reported |
Notes
[trixie] node-axios: Minor issue [bookworm] node-axios: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-axios]Affected
Details (2)
1.2.1+dfsg-1+deb12u1· all · bookwormAffected
nvd · node-axios · debian · bookworm; nvd · node-axios · debian · 12
1.2.1+dfsg-1+deb12u1· all · bookwormAffected
nvd · node-axios · debian · bookworm; nvd · node-axios · debian · 12
[Debian 13 (Trixie)]
- [node-axios]Affected
Details (2)
1.8.4+dfsg-1· all · trixieAffected
nvd · node-axios · debian · 13
1.8.4+dfsg-1· all · trixieAffected
nvd · node-axios · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-42042]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-42042]
- [https://osv.dev/vulnerability/GHSA-xx6v-rp6x-q39c]
- [https://security-tracker.debian.org/tracker/CVE-2026-42042]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42042.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1450.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]