CVE-2026-42040
Axios ≤ 0.31.1
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-42040 is a low-severity Improper Encoding or Escaping of Output (CWE-116) vulnerability in Axios. Its CVSS base score is 3.7 (Low).
Operationally, exploitation aligns with the MITRE ATT&CK technique Modify Registry (T1112); ranked at the 13th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-25590
Vulnerability Data
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')…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Input validation directly stops malformed null bytes from being accepted or mishandled when data crosses representation or component boundaries.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require correct handling of data representations such as null terminators during input validation and component interactions.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect missing or incorrect encoding but does not itself implement the control.
A.5.21's supplier-validation and monitoring processes address delivery compliance and component assurance rather than scanning already-deployed code for subtle null-byte representation defects, and CWE-626 rarely surfaces as a disclosed CVE.
Secure coding standards explicitly require correct output encoding and escaping to preserve message structure.
A.8.3 restricts access to information and assets, but CWE-626 is a code-level implementation flaw in how null bytes are handled when crossing language boundaries; access controls do not stop the flawed code from being exploited once it exists.
A.8.30 is a contractual/governance layer that requires outsourced developers to follow secure design, coding and testing practices (referencing 8.25–8.29); it does not itself implement those practices, so per the owner's labeling doctrine a clause that depends on other controls to act does not inherit their preventive effect, and CWE-626's prevention belongs to the secure-coding/testing controls A.8.30 mandates rather than to A.8.30 itself.
A.8.8 manages technical vulnerabilities by identifying, evaluating, and remediating them, but it does not block the exploitation of a null byte interaction error that remains present in the product's code.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-116, a class-level weakness, and none of its children carries one either.