CVE-2026-101903

Axios: ReDoS in fromDataURI data: URL parser freezes the Node event loop (DoS)

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.16.1 until 1.20.0, the RFC 2397 regular expression allows slash characters on both sides of the media-type separator. An application passes an attacker-controlled malformed data URL containing many slash characters and no comma. the JavaScript regular-expression engine explores many separator placements before rejecting the URL. Synchronous excessive backtracking can block the Node.js event loop and cause denial of service. The affected identifiers are fromDataURI, DATA_URL_PATTERN, data:. This issue is fixed in version 1.20.0.

Analysis

AI-generated

Technical impact

A malformed data URL with an excess of slash characters and no comma triggers the RFC 2397 regular expression used by axios's fromDataURI function to explore many separator placements. The synchronous regex backtracking blocks the Node.js event loop, resulting in a denial of service. This weakness is a regular expression denial of service reflected by CWE-1333.

Affected Systems

Affected systems: Axios versions 1.16.1 up to 1.19.x are affected. The issue appears in the fromDataURI, DATA_URL_PATTERN, and data: identifiers. Systems that use any of these functions in a Node.js environment or in client-side code with the vulnerable axios library could be impacted.

Risk and Exploitability

This vulnerability carries a high CVSS score of 8.2. It is not currently listed in the CISA KEV catalog and no EPSS score is available. While the attack does not require elevated privileges, an attacker can supply a malicious data URL to an axios request crafted by untrusted input, causing the entire Node event loop to stop and denying service to all pending or new requests. The impact is a complete denial of service on affected services until the application is restarted or the vulnerability is patched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the axios library to version 1.20.0 or later, ensuring that all instances of axios in the project use the updated dependency.
  • Remove or sanitize any use of fromDataURI or data URLs with untrusted input, or implement custom validation that rejects URLs containing excessive slash characters.
  • Isolate vulnerable axios usage by offloading requests that contain data URLs to a dedicated worker process or thread to prevent event loop blocking.

Generated by OpenCVE AI on September 28, 2026 at 19:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c29m-xwm3-cm6r Axios: ReDoS in fromDataURI data: URL parser freezes the Node event loop (DoS)
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
First Time appeared Axios
Axios axios
Vendors & Products Axios
Axios axios
Metrics ssvc

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

Type Values Removed Values Added
Description Axios is a promise-based HTTP client for the browser and Node.js. From 1.16.1 until 1.20.0, the RFC 2397 regular expression allows slash characters on both sides of the media-type separator. An application passes an attacker-controlled malformed data URL containing many slash characters and no comma. the JavaScript regular-expression engine explores many separator placements before rejecting the URL. Synchronous excessive backtracking can block the Node.js event loop and cause denial of service. The affected identifiers are fromDataURI, DATA_URL_PATTERN, data:. This issue is fixed in version 1.20.0.
Title Axios: ReDoS in fromDataURI data: URL parser freezes the Node event loop (DoS)
Weaknesses CWE-1333
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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 5:49 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:25 PM