CVE-2026-42040

Description

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.

Severity
LOW
CVSS v3
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N · source cna
Exploit chance (EPSS)
0.217%
chance of exploitation in the next 30 days
higher than 12.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2026-04-27

Timeline

  1. 2026-04-24Published by the CNA17:40 UTC
  2. 2026-04-27CISA SSVC decision recorded3 days after publication
  3. 2026-05-05GitHub advisory published (GHSA-xhjh-pmcv-23jw)11 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-xhjh-pmcv-23jw, affected packages:

PackageVulnerable versionsFixed in
npm axiosbefore 0.31.10.31.1
npm axiosfrom 1.0.0 before 1.15.11.15.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
axios axiosbefore 0.31.1fixed in 0.31.1from 1.0.0 before 1.15.1fixed in 1.15.10.31.11.15.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources