CVE-2026-42040: Axios is a promise based HTTP client for the browser and Node.js
CVE-2026-42040 is a low-severity flaw (CVSS 3.7) affecting axios. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-42040?
axios: upgrade to 0.31.1, 1.15.1. Exact commands for each OS are on this page.
Is CVE-2026-42040 being exploited?
CVE-2026-42040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-42040 affect?
CVE-2026-42040 affects axios. Severity is low (CVSS 3.7). 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-enco
How urgent is CVE-2026-42040?
Priority 26/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Node.js vulnerabilities · Axios vulnerabilities
Related CVEs
- CVE-2025-62718 CRITICAL 9.9 UPGRADE Axios is a promise based HTTP client for the browser and Node.js
- CVE-2026-44496 HIGH 7.5 UPGRADE Axios is a promise based HTTP client for the browser and Node.js
- CVE-2026-44495 HIGH 7.0 UPGRADE UPGRADE Axios is a promise based HTTP client for the browser and Node.js
- CVE-2026-44494 HIGH 8.7 UPGRADE Axios is a promise based HTTP client for the browser and Node.js
- CVE-2026-44492 HIGH 8.6 UPGRADE Axios is a promise based HTTP client for the browser and Node.js