Skip to content

Symfony

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?

ProductAffected 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.115.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.115.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

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.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
  1. Prerequisites multiplied together0.450
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
  4. Rounded to one decimal between 0.1 and 103.1

How the score works

Exploitation and evidence timeline

  1. 4 Nov 2026 Published
  2. 2 Dec 2026 Risk 3.1 (cvss fallback)

Weakness

CWE-200, CWE-522

References

Get alerts for Symfony

Free email or text alerts when a vulnerability in Symfony reaches risk 8 or higher. Nothing else.