{"id":"CVE-2026-42040","published":"2026-04-24T17:40:31Z","modified":"2026-04-27T13:48:06Z","title":"Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams","vendor":"axios","product":"axios","tier":"tail","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.12579,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"},{"id":"CWE-626","name":"Null Byte Interaction Error (Poison Null Byte)"}],"references":[{"url":"https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.1,"factors":[{"name":"EPSS percentile","points":2.52},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"axios","affectedVersions":[{"vendor":"axios","product":"axios","versions":[">= 1.0.0, < 1.15.1","< 0.31.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-27T13:48:02.943460Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"axios","vulnerableRanges":[">=1.0.0, <1.15.1","<0.31.1"],"patched":["1.15.1","0.31.1"],"from":["GHSA-xhjh-pmcv-23jw"],"provenance":"source"}],"summary":{"text":"The Axios HTTP client (npm package axios) has a flaw in the encode() function of lib/helpers/AxiosURLSearchParams.js, where a character mapping reverses the safe percent-encoding of null bytes so that %00 is turned back into a raw null byte before 1.15.1 and 0.31.1. An attacker can exploit this only in applications that use the URLSearchParams helper directly, with an input that reaches it and a network-reachable target, requiring high attack complexity, no privileges, and no user interaction, with the impact limited to low integrity effects.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:13Z"},"euvd":{"id":"EUVD-2026-25590","exploited":false,"provenance":"source"}}