CVE-2026-42040
Description
A flaw was found in Axios, a software component used for making web requests. This vulnerability allows for the incorrect handling of null bytes, where a safely encoded null byte (%00) is converted back to its raw form (\x00). While the standard use of Axios is not affected, this could lead to unexpected data processing or integrity issues in certain specialized applications. The overall impact of this flaw is considered limited.
Statement
Red Hat rates this vulnerability as Low impact with a CVSS score of 3.7, matching the upstream assessment. The vulnerable code only runs when URL search parameters are built through the AxiosURLSearchParams helper. Standard axios request methods (get, post, etc.) do not use this helper, and Red Hat products that bundle axios construct HTTP parameters from trusted internal inputs rather than unsanitized user data. For exploitation, an attacker would need to inject null bytes into user input that reaches this specific helper, which is unlikely in typical deployments. If a raw null byte reaches a downstream system that treats it as a string terminator, it could cause unexpected behavior such as parameter truncation, path traversal, or security filter bypass. The practical risk remains low because exploitation requires both unsanitized user input flowing into the AxiosURLSearchParams helper and a backend that interprets null bytes differently from the sending application.
Mitigation
Validate and sanitize user-controlled input to remove null bytes before passing it to URL parameter construction. Standard axios request methods (axios.get, axios.post with a params object) do not use the vulnerable AxiosURLSearchParams helper and are not affected.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.7 | N/A | 3.7 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | None |
| Integrity Impact | Low | N/A | Low |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Understanding the Weakness (CWE)
Other
Technical Impact: Other
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.