The vulnerability, CVE-2026-101907, describes a Server-Side Request Forgery (SSRF) bypass in Axios when using the 'fetch' adapter. The core issue is that the maxRedirects: 0 configuration, intended to prevent redirects, was not honored by the fetch adapter. The provided commit d19040bda7a8be2f82c3c6e1a5bc03917daee39a directly addresses this by modifying lib/adapters/fetch.js.
Upon analyzing the patch, it's clear that the fetchAdapter function (the main request handling function returned by the factory in lib/adapters/fetch.js) was the component responsible for constructing the options passed to the native fetch API. In the vulnerable version, this function did not extract maxRedirects from the configuration and, consequently, did not set the redirect option in the fetch call's resolvedOptions object. This omission led to the native fetch API defaulting to redirect: 'follow', thereby ignoring the maxRedirects: 0 setting. The patch explicitly adds maxRedirects to the configuration destructuring and introduces logic to correctly set the redirect option based on maxRedirects, thus mitigating the vulnerability. Therefore, the fetchAdapter function is identified as the vulnerable component.