CVE-2026-101906

Axios: ReDoS (O(N²)) in shouldBypassProxy host normalization, reachable via untrusted redirect Location

Published Sep 28, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Axios is a promise-based HTTP client for the browser and Node.js. From 1.15.0 until 1.20.0, Axios shouldBypassProxy applies a quadratic trailing-dot regular expression to redirect hostnames. HTTP_PROXY or HTTPS_PROXY is configured, NO_PROXY or no_proxy is non-empty, redirects are followed, and a crafted redirect Location contains many dots followed by a non-dot character. Hostname.replace(/.+$/, '') backtracks quadratically while processing the crafted redirect hostname. Synchronous regular-expression processing can block the Node.js event loop and cause denial of service. This issue is fixed in version 1.20.0.

Analysis

AI-generated

Technical impact

Axios, a widely used HTTP client, contains a quadratic regular‑expression that performs host normalization during proxy bypass checks. The vulnerability is triggered when a crafted redirect location includes a long sequence of dots followed by a non‑dot character. Processing this string causes the RegExp engine to backtrack quadratically, potentially blocking the Node.js event loop and leading to a denial of service. The flaw resides in a Parsing and Regular‑Expression weakness (CWE‑1333) and manifests as an unbounded resource consumption issue (CWE‑400).

Affected Systems

The affected product is Axios, version 1.15.0 through 1.19.x, inclusive. Any installation that relies on these releases and that configures HTTP_PROXY or HTTPS_PROXY while allowing redirects to untrusted locations can be impacted.

Risk and Exploitability

The CVSS score of 8.2 classifies this as a high‑severity weakness. Although the EPSS score is not published, the absence of KEV listing does not diminish the risk; a crafted redirect can be delivered via malicious web content or compromised servers. The likely attack vector is through a redirect endpoint supplied by a third‑party service or attacker‑controlled domain, which is inferred from the description of a redirect Location containing many dots. An attacker with control over such redirects can deploy the payload, forcing the client or server to consume excessive CPU cycles and halt normal operation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Axios to version 1.20.0 or later where the host–normalization logic has been rewritten to eliminate the quadratic backtracking
  • If an upgrade cannot be performed immediately, remove or restrict HTTP_PROXY and HTTPS_PROXY bindings for the affected environment and restrict NO_PROXY to trusted domains to prevent undesired redirect processing
  • After mitigation, monitor application performance and confirm that the event loop remains responsive under normal redirect traffic

Generated by OpenCVE AI on September 28, 2026 at 18:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mghh-pgcx-3jjj Axios: ReDoS (O(N²)) in shouldBypassProxy host normalization, reachable via untrusted redirect Location
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios
Type Values Removed Values Added
Description Axios is a promise-based HTTP client for the browser and Node.js. From 1.15.0 until 1.20.0, Axios shouldBypassProxy applies a quadratic trailing-dot regular expression to redirect hostnames. HTTP_PROXY or HTTPS_PROXY is configured, NO_PROXY or no_proxy is non-empty, redirects are followed, and a crafted redirect Location contains many dots followed by a non-dot character. Hostname.replace(/.+$/, '') backtracks quadratically while processing the crafted redirect hostname. Synchronous regular-expression processing can block the Node.js event loop and cause denial of service. This issue is fixed in version 1.20.0.
Title Axios: ReDoS (O(N²)) in shouldBypassProxy host normalization, reachable via untrusted redirect Location
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 7:15 PM
Reserved
Sep 28, 2026, 3:55 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 6:17 PM
Modified
Sep 30, 2026, 7:38 PM
Severity
Important
Public date
Sep 28, 2026, 5:32 PM