CVE-2026-133757 in http-client
Summary
by MITRE • 11/25/2026
Since Symfony 5.4.48, 6.4.16, 7.1.9 and 7.2.0, NoPrivateNetworkHttpClient follows redirects itself, and sends each hop as a new request through the client it decorates. Before a redirect to another origin, it removes the Authorization and Cookie headers it knows about. But the decorated client then added its own default options again. These include the auth_basic, auth_bearer and auth_ntlm credentials, and the Authorization and Cookie headers it was created with. Credentials set with withOptions() on the decorator came back the same way, since the decorator forwards them to the decorated client.
These credentials were then sent to any origin that a response redirected to, for example through an open redirect on the server the application calls. The decorated client alone doesn't send them. The decorator removed the ones passed to request(), but not auth_ntlm. Since Symfony 8.1, DnsResolvingHttpClient follows redirects the same way and is affected too.
With auth_ntlm, curl started the NTLM handshake with the other origin, which could answer with a challenge to get the NTLM response of the application.
On a redirect to another origin, the decorator now passes empty Authorization and Cookie headers and unsets the auth_basic, auth_bearer and auth_ntlm options. The decorated client then can't add its own. Decorators between NoPrivateNetworkHttpClient and the transport, like ScopingHttpClient or CachingHttpClient, can't add theirs either.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in Symfony HTTP clients represents a critical failure in access control logic during URL redirection sequences, specifically affecting versions 5.4 through 8.1 of the framework. The core issue resides within the NoPrivateNetworkHttpClient and DnsResolvingHttpClient decorators, which are designed to prevent server-side request forgery by blocking requests to private or local network addresses. While these components correctly strip sensitive headers such as Authorization and Cookie when a redirect targets an external origin, they fail to properly clear authentication credentials configured at the client level rather than within individual HTTP requests. This architectural flaw allows confidential information intended for internal services to be inadvertently transmitted to untrusted third-party domains if the target server issues a redirect response pointing outside the protected network range.
The technical mechanism of this exploit relies on how Symfony handles request options and decorators in its HTTP stack. When an application configures authentication credentials using methods like withOptions, these settings are attached to the client instance itself rather than being scoped strictly to specific requests. During normal operation, a decorated client might remove headers passed directly within the request object before forwarding them to prevent leakage. However, because the decorator does not unset or clear the default options such as auth_basic, auth_bearer, and specifically auth_ntlm that were set during client initialization, these credentials persist in the configuration state of the underlying transport layer. Consequently, when a redirect occurs to an external origin, the stripped headers are replaced by the persistent defaults from the decorator chain, effectively bypassing the security boundary intended by NoPrivateNetworkHttpClient.
The operational impact is severe for applications relying on internal APIs or services protected by authentication mechanisms that transmit credentials in every request header. An attacker who can induce a redirect to an external domain through any open redirect vulnerability within the application logic gains the ability to exfiltrate these sensitive tokens and passwords. This is particularly dangerous with NTLM authentication, as the curl handler initiates a handshake sequence upon receiving the new origin's challenge. The remote server can then capture the resulting NTLM response hash, which may be susceptible to offline cracking or relay attacks depending on the specific implementation details of the target service. This scenario effectively transforms an open redirect into a credential theft vector, compromising the confidentiality and integrity of internal systems that trust the application as a legitimate client.
This vulnerability maps directly to CWE-200 Information Exposure through Unintended Data Leakage and CWE-384 Session Fixation if session cookies are involved, though it is most accurately described under CWE-918 Server-Side Request Forgery where the protection mechanism itself fails due to improper state management during redirection. In terms of MITRE ATT&CK techniques, this aligns with T1071 Application Layer Protocol for command and control or data exfiltration if used maliciously by an attacker leveraging the stolen credentials, but primarily it represents a failure in access control logic similar to CWE-862 Missing Authorization Check within the context of HTTP redirection handling. The flaw highlights the complexity of maintaining security boundaries when multiple layers of abstraction like decorators are chained together without rigorous state isolation between request-specific data and client-wide configuration options.
Mitigation strategies require immediate updates to affected Symfony versions where patches have been released for 5.4, 6.4, 7.1, and 7.2 branches, ensuring that the NoPrivateNetworkHttpClient correctly unsets all authentication-related options including auth_ntlm when a redirect occurs. For environments unable to patch immediately, developers should avoid using client-level default credentials with HTTP clients that participate in redirection chains involving potentially user-controlled URLs. Instead, credentials should be passed explicitly within each request object and verified for removal before forwarding, or alternative proxy configurations should be employed to enforce network-level restrictions rather than relying solely on application-layer header manipulation. Additionally, auditing codebases for open redirects is essential as this vulnerability serves as a force multiplier for existing redirection flaws in web applications.