CVE-2026-42040
Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the encode() function in lib/helpers/AxiosURLSearchParams.js contains a character mapping (charMap) at line 21 that reverses the safe percent-encoding of null bytes. After encodeURIComponent('\x00') correctly produces the safe sequence %00, the charMap entry '%00': '\x00' converts it back to a raw null byte. Primary impact is limited because the standard axios request flow is not affected. 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.217% · 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 · 3.7 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:58:31.498Z
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.498Z | 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.498Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:31.498Z | 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-42040",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-04-27T13:48:02.943460Z"
}
}
}
],
"references": [
{
"url": "https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-04-27T13:48:06.659Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-xhjh-pmcv-23jw",
"aliases": [
"CVE-2026-42040"
],
"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-xhjh-pmcv-23jw/GHSA-xhjh-pmcv-23jw.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-xhjh-pmcv-23jw/GHSA-xhjh-pmcv-23jw.json",
"last_known_affected_version_range": "<= 0.31.0"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42040",
"type": "ADVISORY"
},
{
"url": "https://github.com/axios/axios",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-116",
"CWE-626"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-04-24T18:16:30Z",
"github_reviewed_at": "2026-05-05T00:18:03Z"
}
}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:18:03.000Z
Source modification: 2026-09-10T03:50:48.032ZDocument fingerprint
2a01d04d529e6be530d525ed9839eaa51ce146cfcc611585ec91a9ea2b37bbf2 - FIRST EPSSConsulted: 2026-11-19T18:27:22.431ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
7b42d2a8416e0ec6738a22af0a3add256e7d99cd01af8550a937f6b69b662df2 - CVE ProgramConsulted: 2026-11-19T12:58:31.498ZArchived source JSON
Source publication: 2026-04-24T17:40:31.125Z
Source modification: 2026-04-27T13:48:06.659ZDocument fingerprint
b14a733bcc89dfd712442f2aa9cb13101ff511f71e1525f18f1298a4e3803cf3 - 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