Skip to main content

Axios HTTP Client EUVDEUVD-2026-25590

| CVE-2026-42040 LOW
Improper Encoding or Escaping of Output (CWE-116)
2026-04-24 GitHub_M GHSA-xhjh-pmcv-23jw
3.7
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify non-standard encode() usage
  2. Delivery
    Craft input with null bytes
  3. Exploit
    Invoke encode() directly
  4. Execution
    Reverse percent-encoding to raw null
  5. Persist
    Inject null bytes into downstream system
  6. Impact
    Alter 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

axios 1.0.0, < 1.15.1
axios < 0.31.1

Affected Packages

npm axios fix: 0.31.1, 1.15.1

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

GitHub Advisory PRIMARY 3.7 LOW
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

3
Patch released
Apr 27, 2026 - 20:09 nvd
Patch available
Patch available
Apr 24, 2026 - 19:01 EUVD
CVE Published
Apr 24, 2026 - 17:40 nvd
LOW 3.7

DescriptionGitHub 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 273 npm packages depend on axios (189 direct, 84 indirect)

Ecosystem-wide dependent count for version 1.0.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Axios

View all
CVE-2026-42043 CRITICAL POC
10.0 Apr 24

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

CVE-2026-42044 CRITICAL POC
9.1 Apr 24

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

CVE-2026-67320 HIGH POC
8.3 Aug 01

Prototype pollution via the Node.js HTTP adapter in axios allows an attacker who controls `Object.prototype.proxy` to si

CVE-2025-27152 HIGH POC
7.7 Mar 07

axios is a promise based HTTP client for the browser and node.js. Rated high severity (CVSS 7.7), this vulnerability is

CVE-2025-58754 HIGH POC
7.5 Sep 12

Axios is a promise based HTTP client for the browser and Node.js. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2026-25639 HIGH POC
7.5 Feb 09

Axios versions up to 0.30.3 is affected by improper check for unusual or exceptional conditions (CVSS 7.5).

CVE-2024-39338 HIGH POC
7.5 Aug 12

axios 1.7.2 allows SSRF via unexpected behavior where requests for path relative URLs get processed as protocol relative

CVE-2021-3749 HIGH POC
7.5 Aug 31

axios is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2019-10742 HIGH POC
7.5 May 07

Axios up to and including 0.18.0 allows attackers to cause a denial of service (application crash) by continuing to acce

CVE-2026-42033 HIGH POC
7.4 Apr 24

Prototype pollution in Axios HTTP client versions before 1.15.1 and 0.31.1 enables silent interception and modification

CVE-2026-42039 MEDIUM POC
6.9 Apr 24

Denial of service in Axios HTTP client before versions 1.15.1 and 0.31.1 allows remote unauthenticated attackers to cras

CVE-2026-42041 MEDIUM POC
6.5 Apr 24

Prototype pollution in Axios library versions prior to 1.15.1 and 0.31.1 allows remote attackers to suppress HTTP error

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy