Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify non-standard encode() usage
-
DeliveryCraft input with null bytes
-
ExploitInvoke encode() directly
-
ExecutionReverse percent-encoding to raw null
-
PersistInject null bytes into downstream system
-
ImpactAlter application behavior
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | The vulnerability requires that an attacker can influence input passed to the AxiosURLSearchParams.encode() function directly. Standard axios request usage (get(), post(), etc.) does not trigger this code path, so applications using axios in the typical documented manner are unaffected. Exploitation is limited to scenarios where application code explicitly calls encode() on untrusted input and the resulting null bytes are processed by downstream systems in a security-relevant manner. The encoding function must be invoked outside the standard request flow, making this a non-default exploitation condition. Additionally, the downstream system must treat null bytes (%00 reversed to \x00) differently than the safe percent-encoded form to produce security impact. |
| Impact | This vulnerability presents low real-world risk despite network-accessible attack vector. CVSS score of 3.7 with AC:H (high complexity) and limited impact (integrity only, no confidentiality or availability effects) reflects the constraints. The high complexity requirement suggests attackers must craft specific conditions to exploit this flaw, and the description explicitly states the standard axios request flow is unaffected, meaning typical usage is protected. EPSS data is unavailable for independent exploitation probability assessment, and no CISA KEV listing or public proof-of-concept code has been identified. The vulnerability only manifests in non-standard code paths or edge-case integrations where the encode() function is called directly rather than through standard request methods. The integrity impact is further limited because the resulting null bytes would need to be processed by a downstream system that both accepts null bytes and treats them differently than percent-encoded equivalents-a scenario requiring specific application logic beyond axios itself. |
| Exploit ScenarioDerived | An attacker would need to identify code within or integrated with an axios implementation that directly calls the AxiosURLSearchParams.encode() function on attacker-controlled input, rather than using standard axios request methods. For example, if an application manually invokes encode() on user-supplied data and passes the result to a downstream system that processes null bytes differently than percent-encoded sequences, the attacker could inject null bytes to alter the application's behavior. This scenario requires both non-standard axios usage and specific downstream processing logic, making exploitation highly dependent on application implementation details. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 24, 2026
Axios versions prior to 1.15.1 and 0.31.1 contain a character mapping flaw in the AxiosURLSearchParams.encode() function that reverses safe percent-encoding of null bytes, converting %00 back to raw null bytes. While the standard axios request flow remains unaffected, this vulnerability could enable integrity compromise in edge-case scenarios where encoded parameters are processed by downstream systems expecting percent-encoded values. No public exploit code or active exploitation has been identified.
RemediationAI
Vendor-released patch: Upgrade axios to version 1.15.1 (for 1.x users) or version 0.31.1 (for 0.x users). These patched versions remove or correct the problematic charMap entry that reverses null byte encoding. Update package.json dependencies and run npm install or yarn install to pull the fixed version. No workarounds are documented for older versions, and given the low practical impact of the standard request flow remaining unaffected, organizations unable to patch immediately should prioritize this as a normal maintenance item rather than emergency remediation. Detailed patching instructions and migration guidance are provided in the GitHub security advisory at https://github.com/axios/axios/security/advisories/GHSA-xhjh-pmcv-23jw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in lib/helpers/AxiosURLSearchParams.js, specifically in the encode() function's charMap object at line 21. Axios uses encodeURIComponent() to safely percent-encode request parameters, including null bytes (\x00), which correctly produces %00. However, a subsequent character mapping step inappropriately includes the entry '%00': '\x00', which reverses this encoding by converting the safe percent-encoded sequence back to a literal null byte. This represents an unsafe decoding operation (CWE-116: Improper Encoding or Escaping of Output) that violates the principle of consistent encoding throughout the request pipeline. The issue affects the promise-based HTTP client library used in both browser and Node.js environments, though the standard axios request flow does not trigger this code path under normal conditions.
Know when Axios gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
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.
Blast Radius
ecosystem impact- 273 npm packages depend on axios (189 direct, 84 indirect)
Ecosystem-wide dependent count for version 1.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NO_PROXY protection bypass in Axios HTTP client (versions 1.0.0-1.15.0 and ≤0.31.0) lets an attacker who controls a requ
JSON response tampering in the Axios HTTP client (versions 1.0.0 up to but not including 1.15.2) lets an attacker who ca
Prototype pollution via the Node.js HTTP adapter in axios allows an attacker who controls `Object.prototype.proxy` to si
axios is a promise based HTTP client for the browser and node.js. Rated high severity (CVSS 7.7), this vulnerability is
Axios is a promise based HTTP client for the browser and Node.js. Rated high severity (CVSS 7.5), this vulnerability is
Axios versions up to 0.30.3 is affected by improper check for unusual or exceptional conditions (CVSS 7.5).
axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative
axios is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is
Axios up to and including 0.18.0 allows attackers to cause a denial of service (application crash) by continuing to acce
Prototype pollution in Axios HTTP client versions before 1.15.1 and 0.31.1 enables silent interception and modification
Denial of service in Axios HTTP client before versions 1.15.1 and 0.31.1 allows remote unauthenticated attackers to cras
Prototype pollution in Axios library versions prior to 1.15.1 and 0.31.1 allows remote attackers to suppress HTTP error
EUVD-2026-25590
GHSA-xhjh-pmcv-23jw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB