CVE-2026-42042
Axios: XSRF Token Cross-Origin Leakage via Prototype Pollution Gadget in `withXSRFToken` Boolean Coercion
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.210% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.4 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:58:31.859Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:31.859Z | CVE Program |
| epss | verified | 2026-11-19T18:27:22.431Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:27.774Z | OSV |
| affected | verified | 2026-11-19T12:58:31.859Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:31.859Z | CVE Program |
Affected versions and configuration
axios axios; default status: unknown: >= 1.0.0, < 1.15.1 [affected; scheme: unspecified]; < 0.31.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "axios",
"product": "axios",
"versions": [
{
"status": "affected",
"version": ">= 1.0.0, < 1.15.1"
},
{
"status": "affected",
"version": "< 0.31.1"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-42042",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-04-27T17:35:32.406605Z"
}
}
}
],
"references": [
{
"url": "https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-04-27T17:35:41.883Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-xx6v-rp6x-q39c",
"aliases": [
"CVE-2026-42042"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.15.1"
}
]
}
],
"package": {
"name": "axios",
"purl": "pkg:npm/axios",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-xx6v-rp6x-q39c/GHSA-xx6v-rp6x-q39c.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.31.1"
}
]
}
],
"package": {
"name": "axios",
"purl": "pkg:npm/axios",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-xx6v-rp6x-q39c/GHSA-xx6v-rp6x-q39c.json",
"last_known_affected_version_range": "<= 0.31.0"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/axios/axios/security/advisories/GHSA-xx6v-rp6x-q39c",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42042",
"type": "ADVISORY"
},
{
"url": "https://github.com/axios/axios",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-183",
"CWE-201"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-04-24T18:16:31Z",
"github_reviewed_at": "2026-05-05T00:25:22Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | axios | Not a distribution channel | 1.15.1 | Official record |
| ecosystem-boundary | npm / package | axios | Not a distribution channel | 0.31.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:27.774ZArchived source JSON
Source publication: 2026-05-05T00:25:22.000Z
Source modification: 2026-09-10T03:51:07.425ZDocument fingerprint
2a01d04d529e6be530d525ed9839eaa51ce146cfcc611585ec91a9ea2b37bbf2 - CVE ProgramConsulted: 2026-11-19T12:58:31.859ZArchived source JSON
Source publication: 2026-04-24T18:03:29.924Z
Source modification: 2026-04-27T17:35:41.883ZDocument fingerprint
b0c28733abd105770f8edf80952bdb77b7b7369f7991b8e2c8ad52d08bb0c224 - FIRST EPSSConsulted: 2026-11-19T18:27:22.431ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
7b42d2a8416e0ec6738a22af0a3add256e7d99cd01af8550a937f6b69b662df2 - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence