Description
Axios is a promise based HTTP client for the browser and Node.js. Axios versions before 0.32.0 on the 0.x line and before 1.16.0 on the 1.x line build a regular expression from the configured XSRF cookie name without escaping regex metacharacters. In standard browser environments, an attacker who can influence the cookie name passed to axios can cause expensive regex backtracking while axios reads document.cookie. The practical impact is client-side availability degradation, such as freezing the affected browser tab while axios prepares a request. The issue does not affect ordinary Node.js HTTP adapter usage, React Native, or web workers, where axios does not read document.cookie. This vulnerability is fixed in 0.32.0 and 1.16.0.
Published: 2026-06-11
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Axios, a promise‑based HTTP client used in browsers and Node.js, is affected by a Regular Expression Denial of Service vulnerability in all releases older than 0.32.0 on the 0.x branch and older than 1.16.0 on the 1.x branch. The flaw emerges because Axios composes a regular expression from the configured XSRF cookie name without escaping any regex metacharacters. When an attacker can influence the cookie name that Axios reads from document.cookie, the resulting regex can trigger catastrophic backtracking, causing the browser tab to freeze while a request is being prepared. This impact is limited to environments that parse document.cookie—Node.js adapters, React Native, or web workers are not affected. The issue is mitigated by applying the latest patches: upgrade to 0.32.0 or later on the 0.x line, or 1.16.0 or later on the 1.x line.

Affected Systems

Affected vendors and products include axios:axios. Clients using the axios HTTP client are impacted if they run any 0.x version older than 0.32.0 or any 1.x version older than 1.16.0. These versions are present in many front‑end web applications that rely on Axios for HTTP requests. The vulnerability is fixed in 0.32.0 and 1.16.0.

Risk and Exploitability

With a CVSS score of 7.5, the vulnerability represents a moderate‑to‑high severity risk. EPSS data is not available, and the vulnerability is not listed in CISA KEV. The attack vector is client‑side: an attacker must control or influence a cookie name that Axios reads from document.cookie, which is realistic for sites that accept arbitrary cookie names from third‑party resources or rely on insecure cookie handling. Successful exploitation would lead to denial of service for the affected browser session but does not provide confidentiality or integrity compromise. Because the issue is limited to browser environments that read document.cookie, Node.js server environments are not at risk.

Generated by OpenCVE AI on June 11, 2026 at 20:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Axios to 0.32.0 or later on the 0.x branch, or to 1.16.0 or later on the 1.x branch.
  • If upgrading is not immediately possible, ensure that any custom XSRF cookie name supplied to Axios contains no regex metacharacters, or pre‑escape the name before passing it to the library.
  • Restrict or sanitize cookie names from user input or external sources, or configure your application to use a fixed, safe cookie name for XSRF protection.

Generated by OpenCVE AI on June 11, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hfxv-24rg-xrqf Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection
History

Thu, 11 Jun 2026 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios

Thu, 11 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 11 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Description Axios is a promise based HTTP client for the browser and Node.js. Axios versions before 0.32.0 on the 0.x line and before 1.16.0 on the 1.x line build a regular expression from the configured XSRF cookie name without escaping regex metacharacters. In standard browser environments, an attacker who can influence the cookie name passed to axios can cause expensive regex backtracking while axios reads document.cookie. The practical impact is client-side availability degradation, such as freezing the affected browser tab while axios prepares a request. The issue does not affect ordinary Node.js HTTP adapter usage, React Native, or web workers, where axios does not read document.cookie. This vulnerability is fixed in 0.32.0 and 1.16.0.
Title Axios: Regular Expression Denial of Service (ReDoS) via Cookie Name Injection
Weaknesses CWE-1333
CWE-400
References
Metrics 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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-11T17:22:09.558Z

Reserved: 2026-05-06T18:28:20.885Z

Link: CVE-2026-44496

cve-icon Vulnrichment

Updated: 2026-06-11T17:22:03.769Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-06-11T17:16:33.590

Modified: 2026-06-11T20:56:29.653

Link: CVE-2026-44496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-11T20:45:10Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption