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.
OpenCVE Enrichment
Github GHSA