Symfony: ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References
CVE-2026-121971GHSA-gq53-v8w2-gjhjPublished 4 Nov 2026, 17:43 UTC
Real-world risk
3.1/ 10Low
Routine
If the vulnerable configuration applies to you: 6.8
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.2
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from Checkmarx)
The component ScopingHttpClient in Symfony HttpClient merges the options of its default scope (such as auth_bearer or auth_basic) into a request before resolving a relative URL against the base_uri, allowing a network-path reference such as "//evil.example/steal" to be sent to another origin together with the default scope’s credentials, and resulting in potential disclosure of those credentials to an attacker-controlled server. This affects Symfony in versions 5.x prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. The resolved URL falls outside the origin of the base URI, yet it keeps the merged options, whereas the absolute spelling "https://evil.example/steal" receives none. The same happens with a different port or user-info part on the same host. This is reachable whenever an attacker controls the beginning of a URL passed to a client built with a base_uri and credentials, including those created with HttpClient::createForBaseUri() or configured under framework.http_client.scoped_clients. To solve the issue, 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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| SymfonyWidespread | < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 | 5.4.56, 6.4.50, 7.4.23, 8.1.11 |
| symfony/http-clientNiche | < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 | 5.4.56, 6.4.50, 7.4.23, 8.1.11 |
What to do
Update to a fixed version: 5.4.56, 6.4.50, 7.4.23, 8.1.11.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 36), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
- Rounded to one decimal between 0.1 and 103.1
Exploitation and evidence timeline
- 4 Nov 2026 Published
- 2 Dec 2026 Risk 3.1 (cvss fallback)
Weakness
CWE-200, CWE-522
References
- https://github.com/symfony/symfony/security/advisories/GHSA-gq53-v8w2-gjhjthird-party-advisory
- https://github.com/symfony/symfony/commit/64c34e85bd03b3f8a735d8e1af393659dda91d7cpatch
- https://nvd.nist.gov/vuln/detail/CVE-2026-121971
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-client/CVE-2026-121971.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-121971.yaml
- https://github.com/symfony/symfony/releases/tag/v5.4.56
- https://github.com/symfony/symfony/releases/tag/v6.4.50
- https://github.com/symfony/symfony/releases/tag/v7.4.23
- https://github.com/symfony/symfony/releases/tag/v8.1.11
- https://github.com/advisories/GHSA-gq53-v8w2-gjhj
- CVE-2026-121971 on CVE.org