CVE-2026-42040Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams
A low-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.3%
- percentile 13%
- Fix
- Named by a source
- CVE published 24 Apr 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.3% (+0) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- axios (npm): upgrade to 1.15.1 / 0.31.1 or later on your release line.
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-42040
Who should check
axios (npm) pkg:npm/axios
- Affected>= 1.0.0, < 1.15.1Fixed in1.15.1OSV (GHSA-xhjh-pmcv-23jw)
- Affected< 0.31.1Fixed in0.31.1OSV (GHSA-xhjh-pmcv-23jw)
axios axios product:axios/axios
- Affected>= 1.0.0, < 1.15.1Affected range ends before1.15.1as published by CNA (CVE List)
- Affected< 0.31.1Affected range ends before0.31.1as published by CNA (CVE List)
- Affected< 0.31.1Affected range ends before0.31.1as published by CPE data (via the NVD API)
- Affected>= 1.0.0, < 1.15.1Affected range ends before1.15.1as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 3.7 LOW (version 3.1)
- Score from
- CNA ([email protected])
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-116, CWE-626
- Exploitation (CISA SSVC)
- poc
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 24 Apr 2026Published
References
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-42040 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-xhjh-pmcv-23jw (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 35 min ago · osv 35 min ago · nvd 4 min ago · epss 34 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-xhjh-pmcv-23jw