Skip to content
SSRF Write-up Intermediate

How We Bypassed an Axios Security Patch (CVE-2026–42043): The 16-Million IP Loophole

The Axios patch for a previous SSRF vulnerability only blocked three hardcoded loopback addresses, so an attacker could still force requests to other addresses in the [redacted]/8 range and have them routed through an attacker-controlled proxy. This allowed silent interception of internal traffic and potential cloud credential theft.

infosecwriteups.com

Published on infosecwriteups.com

When a patch for a critical vulnerability drops in a library downloaded over 500 million times a week, you expect it to be bulletproof. Developers quickly update their package.json, deploy to production, and sleep peacefully, assuming their internal services are safe again.

Sachin Patil, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The patch used a hardcoded list of three loopback addresses instead of checking the entire [redacted]/8 subnet defined by RFC 1122.

Impact

An attacker could bypass NO_PROXY protections to silently intercept internal traffic, potentially exposing cloud metadata services and leading to cloud account compromise.

What the attacker needed

NO_PROXY configured with standard loopback addresses; attacker can control or influence request URL; attacker-controlled proxy server

The fix

The fix replaces the hardcoded set with a check that validates the entire [redacted]/8 subnet, and the text states patched versions are available.

How it was found

  1. Set NO_PROXY to include localhost, [redacted], and ::1.
  2. Force the application to request an internal service at [redacted]:8080.
  3. Observe that Axios does not recognise [redacted] as loopback and routes the request through the proxy.
  4. Confirm that requests to [redacted], [redacted], and [redacted] are forwarded to the attacker-controlled proxy.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Axios is a tool that helps programs make web requests. A security setting called NO_PROXY tells it which internal addresses should never go through an external proxy. The fix for an earlier bug only checked for three specific addresses, so other addresses in the same internal range still slipped through and could be sent to an attacker's proxy.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.