Multiple Axios Vulnerabilities Enable SSRF, DoS, Proxy Bypass and Request Hijacking Attacks

Axios maintainers have disclosed a cluster of security vulnerabilities affecting the widely deployed JavaScript HTTP client, including flaws that can enable server-side request forgery, denial-of-service conditions, proxy-control bypasses, prototype-pollution-based request manipulation, and socket hijacking.

The advisories, published on September 16, identify at least 10 Axios issues spanning the project’s HTTP/2, Node HTTP, and Fetch adapters, as well as proxy processing and form-data handling paths.

Several are rated high severity, emphasizing the risk to Node.js services that use Axios to make outbound requests based on partially attacker-controlled input.

Multiple Axios Vulnerabilities

Among the most serious findings is GHSA-3pq3-5fj3-cg6v, which reports that Axios’s HTTP/2 adapter can bypass configured DNS lookup and proxy controls.

In affected deployments, applications that depend on custom DNS resolution, egress proxies, or URL-validation layers may inadvertently send traffic outside intended network boundaries.

Such behavior can undermine SSRF defenses designed to prevent requests to loopback hosts, internal services, or cloud metadata endpoints.

A separate high-severity advisory, GHSA-542g-h47m-68v8, describes a denial-of-service condition caused by an unhandled error event during HTTP/2 ClientHttp2Session initialization.

In Node.js, unhandled error events can terminate the process, making this issue particularly significant for internet-facing services that permit external parties to influence outbound Axios destinations or connections.

Axios also disclosed high-severity Regular Expression Denial of Service flaws in its shouldBypassProxy host-normalization logic and fromDataURI parser.

The proxy-related issue can reportedly be reached through an untrusted redirect Location header, allowing an attacker to supply crafted input that drives excessive processing and blocks the Node.js event loop.

The data: URI issue similarly risks freezing the event loop when Axios parses maliciously constructed URLs. Because Node’s event loop services all requests within a process, one expensive operation can degrade availability for unrelated users.

Proxy bypass remains a recurring concern in Axios. The newly listed GHSA-44g4-m2mj-wpvx advisory states that CIDR-form NO_PROXY entries are ignored, potentially causing requests intended for excluded internal IP ranges to traverse a configured proxy.

In applications where outbound proxies handle access to sensitive network services, that failure can alter routing assumptions and expose protected requests to unintended infrastructure.

Several prototype-pollution gadgets extend the impact beyond availability and routing. GHSA-x97p-jq2g-jp4f affects toFormData options, while GHSA-9fr6-4gfg-395g can allow an inherited Object.prototype.method property to override the HTTP method used by Axios’s default instance.

Another issue in the Fetch adapter can alter outbound requests, and GHSA-m8m8-qj5v-23w3 affects the Node HTTP adapter, where inherited createConnection properties may enable request-socket hijacking.

Axios also disclosed GHSA-r4gj-5m52-g5wh, where maxRedirects: 0 is not enforced by the Fetch adapter, creating a redirect-based SSRF risk.

Security teams should inventory Axios usage, prioritize upgrades to patched releases, review custom proxy and DNS configurations, and ensure untrusted input cannot control request URLs, redirect targets, or request configuration objects.

The Axios project supports both 0.x and 1.x release lines and says it publishes security updates through GitHub advisories and release notes.

Its security policy also states that it treats actively exploited vulnerabilities as incidents and patches them as soon as fixes are validated.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories