PatchSiren cyber security CVE debrief
CVE-2026-42040 axios CVE debrief
Axios, a promise-based HTTP client for browser and Node.js, had a vulnerability prior to versions 1.15.1 and 0.31.1. The encode() function in lib/helpers/AxiosURLSearchParams.js incorrectly decoded null bytes, potentially impacting URL encoding in certain scenarios. The standard axios request flow remains unaffected. Fixes are available in versions 1.15.1 and 0.31.1. This issue requires defenders to verify axios versions and apply updates to prevent potential issues. The vulnerability's impact is limited due to the standard axios request flow not being affected.
- Vendor
- axios
- Product
- Unknown
- CVSS
- LOW 3.7
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-24
- Original CVE updated
- 2026-11-11
- Advisory published
- 2026-04-24
- Advisory updated
- 2026-11-11
Who should care
Defenders and developers using axios in Node.js or browser applications should assess exposure and apply updates. They should review URL encoding usage and monitor axios-based applications for unusual URL encoding behavior. This will help prevent potential issues and ensure the security of axios-based applications.
Why it matters
The vulnerability in axios's URL encoding could potentially impact URL processing in certain scenarios, although the standard axios request flow is not affected. Defenders should verify axios versions and apply updates to prevent potential issues.
- Verify URL encoding usage and update axios versions to prevent potential issues
- Monitor axios-based applications for unusual URL encoding behavior
Technical summary
The encode() function in Axios's lib/helpers/AxiosURLSearchParams.js incorrectly reverses the safe percent-encoding of null bytes. This issue is fixed in axios versions 1.15.1 and 0.31.1. The vulnerability in axios's URL encoding could potentially impact URL processing in certain scenarios, although the standard axios request flow is not affected. Defenders should verify axios versions and apply updates to prevent potential issues. The vulnerability's impact is limited due to the standard axios request flow not being affected.
Defensive priority
Defenders should prioritize verifying axios versions and applying updates where necessary.
Recommended defensive actions
- Verify axios versions in use and update to 1.15.1 or 0.31.1 if vulnerable
- Review URL encoding usage in axios-based applications
- Monitor for potential exploitation attempts
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The CVE record and NVD entry provide details on the vulnerability and affected versions. The encode() function in Axios's lib/helpers/AxiosURLSearchParams.js incorrectly reverses the safe percent-encoding of null bytes. This issue is fixed in axios versions 1.15.1 and 0.31.1. The standard axios request flow remains unaffected. Defenders should verify axios versions and apply updates where necessary to prevent potential issues.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-42040 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-42040
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-42040 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-42040
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw
[email protected] - Exploit, Mitigation, Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.