Home › Vulnerabilities › Symfony
Symfony HttpClient: two flaws, one leaking default-scope credentials to other hosts and one enabling DNS rebinding
GitHub's advisory batch for composer:symfony/http-client lists two flaws. The higher-rated CVE-2026-121971 can send default-scope credentials to a host outside the base URI, and CVE-2026-123119 lets a DNS rebinding attacker reach private hosts through NoPrivateNetworkHttpClient.
What to look into
- 2 vulnerabilities in composer:symfony/http-client: 1 high, 1 low (CVSS up to 8.2).
- None of them is known to be exploited yet.
- Start with CVE-2026-121971 (8.2 high): Description ScopingHttpClient applies the options of a scope, such as authbearer, authbasic, headers or localcert, to the URLs that match that scope only. A relative URL is resolved against the baseu… An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- 1 of 2 can be attacked over the network without logging in, 1 of them without anyone clicking anything.
- Kinds of flaws: Exposure of Sensitive Information to an Unauthorized Actor; Insufficiently Protected Credentials; Time-of-check Time-of-use (TOCTOU) Race Condition; Server-Side Request Forgery (SSRF).
Key points
- CVE-2026-121971 (HIGH, CVSS 8.2) can send the default scope's credentials to a host outside the base URI when a URL starts with //.
- The risk applies to HttpClient::createForBaseUri() and scoped clients with a baseuri under framework.httpclient.scopedclients.
- CVE-2026-123119 (LOW, CVSS 2.3) lets DNS rebinding bypass the private-IP check on repeat requests, allowing internal host and port enumeration.
- The excerpts do not state a fixed version or complete workaround.
Two flaws, different risks
This batch covers two vulnerabilities in the Symfony HttpClient component, published through the GitHub Advisory feed for composer:symfony/http-client. The more serious one, CVE-2026-121971 (rated HIGH, CVSS 8.2), concerns scoped clients. The second, CVE-2026-123119 (rated LOW, CVSS 2.3), concerns the NoPrivateNetworkHttpClient decorator.
CVE-2026-121971: credentials sent to another host
According to the advisory, ScopingHttpClient merged the options of the default scope, such as authbearer, authbasic, headers or localcert, before resolving a relative URL. A network-path reference beginning with // carries its own host, so it resolves outside the base URI's origin, where no scope matches, yet the merged options were still applied. The request then reached that host with the default scope's credentials. The same URL written in absolute form did not receive them.
The advisory says this affects clients built by HttpClient::createForBaseUri() and scoped clients configured with a baseuri under framework.httpclient.scopedclients. Exposure requires that an attacker can control the start of a URL passed to such a client, for example through user input or a URL returned by a remote API. Similar behaviour is described for another port or user-info on the same host, and when the resolved URL matched a different scope, the default scope's credentials were sent instead of that scope's own.
CVE-2026-123119: DNS rebinding and port probing
NoPrivateNetworkHttpClient checks each host's IP before connecting and pins it with the resolve option, but according to the record it did so only on the first request to a host. Later requests let the decorated client resolve the host again. A DNS owner can return a public address first and a private one later. The check on primaryip still aborts the request before anything is sent, but the connection attempt occurs, and the error differs between open and closed ports. That may allow enumeration of internal hosts and ports, as with CVE-2024-50342. The stated resolution passes the cached IP with resolve on every request.
Fixes
The excerpts provided do not name a fixed version for either issue, and the text describing the first flaw's resolution is cut off. Those details should be confirmed in the full advisories.
What to do
- Check whether your code uses HttpClient::createForBaseUri() or framework.httpclient.scopedclients with a baseuri, and whether any URL passed to them can begin with user-controlled input or come from a remote API.
- Consult the full CVE-2026-121971 and CVE-2026-123119 advisories for the fixed release of composer:symfony/http-client, since the excerpts here do not name one.
- Review uses of NoPrivateNetworkHttpClient where several requests from user-supplied URLs go to the same host.
The 2 vulnerabilities
- CVE-2026-121971 8.2 Description ScopingHttpClient applies the options of a scope, such as authbearer, authbasic, headers or localcert, to the URLs that match that scope only. A relative URL is resolved against the baseuri of the default scope, and the options…
- CVE-2026-123119 2.3 Symfony HTTP Client Vulnerability Allows TOCTOU Race Condition
Frequently asked questions
How many composer:symfony/http-client vulnerabilities were published on December 1, 2026?
2 vulnerabilities: 1 high, 1 low, with CVSS scores up to 8.2.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-121971 (CVSS 8.2): Description ScopingHttpClient applies the options of a scope, such as authbearer, authbasic, headers or localcert, to the URLs that match that scope only. A relative URL is resolved against the baseu…