CVE-2026-133758 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 prepares each request with the default options of the library. The decorator then passes all these options to the decorated client. Every option is then already set, so that client ignores its own default options.
When these defaults restrict TLS trust, the restriction is lost without any error. A client created with peer_fingerprint, a private cafile or a minimum crypto_method refuses a server on its own. Once decorated, the same client connects to that server. Someone on the network path with a certificate that the system trust store accepts can then read and answer the requests. Default proxy and max_redirects options were lost the same way. Since Symfony 8.1, DnsResolvingHttpClient is affected too.
This also applies to the default_options of FrameworkBundle, which configure the innermost client.
The decorator now passes the options given to it, plus the ones it manages itself. The decorated client then applies its own default options again.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
A critical configuration bypass vulnerability exists within Symfony HTTP clients affecting versions 5.4 through 7.2 and specifically version 8.1 for DNS resolution components. This flaw stems from an incorrect implementation of the decorator pattern used to wrap HTTP client implementations, resulting in the silent loss of security-critical default options such as TLS peer fingerprints, private certificate authority files, minimum cryptographic method requirements, proxy configurations, and redirect limits. The vulnerability allows attackers with a position on the network path to perform man-in-the-middle attacks by exploiting the fact that decorated clients ignore their own internal defaults when wrapped by specific HTTP client decorators.
The technical root cause lies in how the NoPrivateNetworkHttpClient decorator handles request preparation. When preparing each request, this decorator applies the library's default options and then passes all these pre-set options to the underlying decorated client. Because every option is explicitly set during this process, the inner client interprets that its own configured defaults are already satisfied or overridden, causing it to skip applying its internal security constraints. This behavior effectively neutralizes any TLS trust restrictions defined at the base level of the HTTP stack. For instance, if a developer configures an HTTP client with specific peer fingerprints or a private CA file to ensure secure connections, these settings are stripped away when the request is processed through the decorator chain, leaving the connection vulnerable to interception by entities possessing certificates trusted by the system's default trust store.
The operational impact of this vulnerability is severe for applications relying on Symfony’s HTTP client infrastructure for sensitive communications. Attackers positioned in the network path can intercept and potentially modify traffic that was intended to be secured through strict TLS verification. This undermines the principle of least privilege and secure defaults, as security configurations are silently discarded without raising any errors or warnings. Developers may incorrectly assume their security settings are active when they are not, leading to data exposure, credential theft, or injection attacks via compromised channels. The issue also affects default proxy and maximum redirect options, which can lead to unintended network behavior such as open redirects or leakage of internal infrastructure details through misconfigured proxies.
This flaw extends beyond the NoPrivateNetworkHttpClient decorator to include other components like DnsResolvingHttpClient in Symfony 8.1, indicating a systemic pattern error in how decorators interact with inner client configurations. Furthermore, the vulnerability impacts applications using FrameworkBundle’s default_options configuration, which sets parameters for the innermost HTTP client instance. When these defaults are restricted by security policies, they fail to propagate correctly through the decorator layers, resulting in connections that bypass intended security controls. This affects a wide range of use cases where secure external API calls or internal service communications depend on strict TLS validation and controlled network behavior.
Mitigation strategies require immediate updates to affected Symfony versions, specifically upgrading to 5.4.49+, 6.4.17+, 7.1.10+, 7.2.1+, or 8.1.1+ where the decorator logic has been corrected to preserve inner client defaults rather than overriding them with pre-set values. For applications unable to upgrade immediately, developers should review their HTTP client configurations and consider implementing custom middleware that explicitly enforces security constraints after decoration occurs. It is also advisable to audit codebases for any reliance on default_options within FrameworkBundle and ensure that critical TLS settings are validated at runtime rather than relying solely on static configuration defaults.
From a classification perspective, this vulnerability aligns with CWE-20 Improper Input Validation as the system fails to properly validate or preserve intended security configurations during request processing. It also relates to CWE-16 Configuration which involves incorrect assumptions about how default settings are applied in layered architectures. In terms of attack vectors, this flaw facilitates MITM attacks consistent with ATT&CK technique T1557 Adversary-in-the-Middle, where an attacker intercepts communication between two parties who believe they are directly communicating. The silent nature of the failure makes detection difficult without active monitoring and strict TLS pinning validation at multiple layers of the application stack.