# CVE-2026-42040: Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-24 · Modified: 2026-04-27
- Aliases: UBUNTU-CVE-2026-42040, DEBIAN-CVE-2026-42040, CGA-36fv-fpg9-4m3w, CGA-39r3-x72h-jrhm, CGA-3qcf-jqv8-5q73, CGA-46wm-x2cx-q8hw, CGA-4v2f-fjfc-8x47, CGA-52q7-4858-3977, CGA-5p6j-5h9f-289v, CGA-5vv4-m82c-6q6g, CGA-66wv-5m5r-3455, CGA-6xhc-4v56-rp4q, CGA-7vgp-r8cp-fpgw, CGA-7wvv-7wvr-6mv6, CGA-83ww-3xc3-qpmw, CGA-8f4x-5j5w-vp3g, CGA-8fv2-hc9v-px83, CGA-97mc-f2qg-6x8h, CGA-9jrq-4xq6-jp28, CGA-9qhg-qvxv-fqrq, CGA-cq3v-hc38-74fx, CGA-fg69-vx5v-q93c, CGA-g4p5-rvg4-5594, CGA-grvj-6w5r-hmqm, CGA-h5j4-xfg8-9f2p, CGA-hrwx-32fj-jfq7, CGA-j38j-f2xw-7f88, CGA-j3jh-8p9r-845h, CGA-j4q4-2qmh-qmh7, CGA-jg6r-w7h6-7xh5, CGA-jmr2-c89j-mqp4, CGA-jr99-q45p-2p87, CGA-m498-q9cm-8vxg, CGA-m94c-gfx6-4qgm, CGA-mjcp-2898-ff7g, CGA-pv2c-pmc8-f6rp, CGA-q99f-xp75-5hhr, CGA-qr53-rf99-869c, CGA-qv5c-3mrg-h9fq, CGA-rcmw-263j-rpfj, CGA-rm4v-4hrv-95xj, CGA-rqm3-94q2-7jfx, CGA-vq5v-48ww-gg65, CGA-w7x4-8mg3-gpvh, CGA-wjq2-c8p5-c3pc, CGA-wqw3-5gfj-x346, CGA-x4h6-q887-cwmx, GHSA-xhjh-pmcv-23jw, CGA-22m9-72fc-qxx8, CGA-2f7m-2f7w-xwcw, CGA-2ghc-p43w-36m2, CGA-2mjx-x5gg-2grh, CGA-2qc8-2m8r-gmwj, CGA-2w73-f5ch-98c7, CGA-2x9x-j4cw-j7c9, CGA-33fh-v7f4-h6pp, CGA-37gf-q3p3-m4m3, CGA-3cw7-9g75-hf76, CGA-3gg6-2fjf-549m, CGA-3m78-38wg-r93x, CGA-3qjv-mfx2-2299, CGA-3rf8-6vgm-35w7, CGA-3rfw-4m2f-978x, CGA-3vh7-3rq2-g499, CGA-466x-r546-8jfr, CGA-46pc-8hmq-mhhc, CGA-4c5g-7fp9-3wvw, CGA-4f49-rgq3-6xvv, CGA-4jh7-4gmh-mvwp, CGA-4jq5-3qr5-r9v8, CGA-4pwx-f8pj-x4wf, CGA-4wrh-qw39-jcqw, CGA-4x78-2gm3-rjj6, CGA-52v9-9fm3-26r6, CGA-5h6v-qhqp-jh9x, CGA-5q8c-9h9x-w59w, CGA-65q6-7r2f-g4j7, CGA-669w-gqmq-qcg4, CGA-6787-g348-j5vh, CGA-6hg4-j449-77q3, CGA-6p89-8jhp-fcmr, CGA-6wvr-grv3-67g8, CGA-6xgh-xw39-366v, CGA-74xw-r64g-xg5x, CGA-7f2r-gfmx-r3hx, CGA-7q2j-f55h-jj8w, CGA-7rc5-8vjf-jxp3, CGA-7vhh-5qmf-g4q4, CGA-7xq7-qjm4-gmxg, CGA-87jc-73xc-3cx6, CGA-8chq-h5fr-2jg9, CGA-8h98-6h28-h3jv, CGA-8m25-4vxq-q3jx, CGA-8wvr-86cp-8cm6, CGA-8wxr-cx8p-fh89, CGA-923c-xr2f-59v7, CGA-92j5-3rv6-c873, CGA-9399-h6wj-v2gh, CGA-9689-3hgq-46g2, CGA-999x-rvr8-x6cg, CGA-99pw-x8h8-jmxw, CGA-9g67-6gqh-787p, CGA-9gxg-2fq6-cc4c, CGA-9mhw-53vg-9gvx, CGA-9r98-4mwg-m43v, CGA-c3fh-458w-48wj, CGA-c3m9-vf54-xm8j, CGA-c47w-x229-f6xc, CGA-cg56-gwwq-xr32, CGA-ch8c-w9fq-wxr9, CGA-chg3-82vf-3xv6, CGA-cr4v-jh2h-23hc, CGA-cx54-mgc7-p946, CGA-cxf3-3mq6-w7hp, CGA-ff48-7q52-4582, CGA-fgx3-796p-v2jg, CGA-fv8r-3mh2-hw49, CGA-fwfv-qwwq-vfrm, CGA-fwgp-2r77-98x2, CGA-fxr4-wvvv-98c7, CGA-g25q-jwg6-8gmf, CGA-g353-3w49-xmvh, CGA-gc23-3rp8-g9g7, CGA-gccq-6r9j-xr8r, CGA-gg72-xcpx-h998, CGA-ggmg-4f7m-p9f3, CGA-gh2x-xgv6-r5r5, CGA-gpff-x8c8-3r37, CGA-gpqw-v3h2-4vgr, CGA-gqq2-5pjh-wqwr, CGA-gvqg-8fvg-pcpp, CGA-gw5q-q36m-v979, CGA-gxcf-3qf8-qmjw, CGA-gxff-9cxr-8f24, CGA-h5x8-62mh-q4cw, CGA-h6jx-88mg-7w2p, CGA-hhf5-cfrg-377g, CGA-hp8w-hw6c-97fp, CGA-hqm8-7j85-j539, CGA-hwr5-j3fm-5hv8, CGA-hx7g-43m8-fh58, CGA-j34c-68mr-c843, CGA-j538-v938-66j4, CGA-j747-mr66-j7fw, CGA-j7r9-9hm4-9vv5, CGA-j84m-jq4r-f492, CGA-jc43-mwm8-cq9p, CGA-jhcm-cgxm-mh78, CGA-jjjp-999v-929c, CGA-jmff-m9w4-2c9x, CGA-jmhj-4v73-m3vp, CGA-jmjj-3ccq-fpqp, CGA-jx9h-97jx-7ffc, CGA-m2xr-chwv-3gp3, CGA-m7fh-ff47-3v73, CGA-m7hv-p6j3-hxhp, CGA-mccx-wm2p-9f6h, CGA-mf67-pj25-gw46, CGA-mfcx-76fp-hw9w, CGA-mg7j-fc63-r56r, CGA-mjhv-h68m-c55q, CGA-mrpg-28j5-87hr, CGA-mw8p-qw2v-4c7f, CGA-mwq8-r5gv-2rf4, CGA-mxg7-cxpm-jxpc, CGA-p544-j23f-6j2w, CGA-p9rg-3v3p-82xq, CGA-pgwr-7pg3-qj4r, CGA-pj6f-38f2-368p, CGA-pq87-6c5w-gjcj, CGA-pqjw-6xp4-fgm4, CGA-pqw7-pxvc-67gj, CGA-prg3-r8gf-v7q3, CGA-pvv8-cmj6-44h7, CGA-pw62-68p7-pv8x, CGA-q2qq-x4p9-36j7, CGA-q3m3-m58w-v3pp, CGA-q5rg-c7c8-35wj, CGA-q5rg-qw48-w6hc, CGA-q92q-qrxw-v3ww, CGA-qc9c-r358-x2g7, CGA-qf7f-qf8g-v5x2, CGA-qgf6-gcgp-749r, CGA-qqp4-fv5q-9vq2, CGA-qr4j-x2rq-w79r, CGA-qxjh-363j-7fxx, CGA-r24c-rh4w-45cp, CGA-r48j-6vx6-cqqm, CGA-rc4h-5p4v-wvv7, CGA-rg82-p9q3-5h88, CGA-rjfm-6fw3-2x8x, CGA-v6v3-97gc-hhq9, CGA-v734-mwxm-x828, CGA-v75w-vrv8-648h, CGA-vgjh-f689-3j2q, CGA-vp5h-jhvm-7whw, CGA-vpw5-7gp8-chr2, CGA-vq5w-72r8-m433, CGA-vw37-wf5p-pvh7, CGA-w3m3-w2gg-vqhj, CGA-w79f-w4wr-6xhg, CGA-w94c-fh9j-jvgw, CGA-wg4r-j32c-mqfv, CGA-wm3g-cm56-47wx, CGA-wrmj-9hww-6gj4, CGA-x8jg-q434-5jh6, CGA-x8xj-6v8p-9946, CGA-x932-96rq-5vq5, CGA-x97h-x62q-j88h, CGA-xwcj-5c25-4gf4
- Record: https://cvemate.com/vulnerability/CVE-2026-42040 · JSON: https://cvemate.com/vulnerability/CVE-2026-42040/json

## 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.
```

## Signals

- CVSS: 3.7 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.199%, percentile 10.244%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 101)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r14
- chainguard awx (Chainguard): \< 24.6.1-r42
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): \< 18.10.8-r8 \| All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0 \| \< 18.11.6-r7
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.7-r6 \| \< 19.1.3-r7
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.4-r4 \| \< 19.2.5-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.1-r4 \| \< 19.3.1-r6
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.7-r1 \| \< 18.11.12-r2
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw>
- <https://ubuntu.com/security/CVE-2026-42040>
- <https://www.cve.org/CVERecord?id=CVE-2026-42040>
- <https://security-tracker.debian.org/tracker/CVE-2026-42040>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42040.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42040>
- <https://github.com/axios/axios>

---

Data as of 2026-12-05T12:52:55.013Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
