Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for symfony/security-http by Symfony

    CVE-2026-134790 (GCVE-0-2026-134790)

    Vulnerability from nvd – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
    Summary
    The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test. Applications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again. HttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains.
    CWE
    • CWE-601 - URL Redirection to Untrusted Site
    Impacted products
    Vendor Product Version
    Symfony symfony/security-http Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/security-http",
              "product": "symfony/security-http",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Amimul Ihsan"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:36:46.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fix for CVE-2017-16652 restricts the redirects of `HttpUtils::createRedirectResponse()` to the host of the request. When `framework.session.cookie_domain` is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain `.example.com`, a target like `https://evil.test?.example.com` passed the check, and the browser went to evil.test.\n\nApplications are exposed when `framework.session.cookie_domain` is set. The default success and failure handlers of `form_login` redirect to the `_target_path` or `_failure_path` of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\n`HttpUtils` now ends the host of a target where browsers do, before checking it against the allowed domains."
                }
              ],
              "value": "The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test.\n\nApplications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\nHttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.3,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-601",
                  "description": "CWE-601 URL Redirection to Untrusted Site",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:21.839Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-134790",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-134790"
            },
            {
              "name": "GHSA-xf2q-gfhq-mv2q",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844"
            }
          ],
          "source": {
            "advisory": "GHSA-xf2q-gfhq-mv2q",
            "discovery": "UNKNOWN"
          },
          "title": "Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-134790",
        "datePublished": "2026-11-25T10:00:21.839Z",
        "dateReserved": "2026-11-22T17:09:05.968Z",
        "dateUpdated": "2026-11-25T10:00:21.839Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-134790 (GCVE-0-2026-134790)

    Vulnerability from cvelistv5 – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
    VLAI
    Title
    Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
    Summary
    The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test. Applications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again. HttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains.
    CWE
    • CWE-601 - URL Redirection to Untrusted Site
    Impacted products
    Vendor Product Version
    Symfony symfony/security-http Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Symfony symfony/symfony Affected: 0 , < 5.4.57 (semver)
    Affected: 6.0.0 , < 6.4.51 (semver)
    Affected: 7.0.0 , < 7.4.24 (semver)
    Affected: 8.0.0 , < 8.1.12 (semver)
    Create a notification for this product.
    Date Public
    2026-11-25 09:36
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/security-http",
              "product": "symfony/security-http",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://packagist.org",
              "defaultStatus": "unaffected",
              "packageName": "symfony/symfony",
              "product": "symfony/symfony",
              "repo": "https://github.com/symfony/symfony",
              "vendor": "Symfony",
              "versions": [
                {
                  "lessThan": "5.4.57",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "6.4.51",
                  "status": "affected",
                  "version": "6.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "7.4.24",
                  "status": "affected",
                  "version": "7.0.0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "8.1.12",
                  "status": "affected",
                  "version": "8.0.0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "reporter",
              "value": "Amimul Ihsan"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Nicolas Grekas"
            }
          ],
          "datePublic": "2026-11-25T09:36:46.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The fix for CVE-2017-16652 restricts the redirects of `HttpUtils::createRedirectResponse()` to the host of the request. When `framework.session.cookie_domain` is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain `.example.com`, a target like `https://evil.test?.example.com` passed the check, and the browser went to evil.test.\n\nApplications are exposed when `framework.session.cookie_domain` is set. The default success and failure handlers of `form_login` redirect to the `_target_path` or `_failure_path` of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\n`HttpUtils` now ends the host of a target where browsers do, before checking it against the allowed domains."
                }
              ],
              "value": "The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test.\n\nApplications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\nHttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "baseScore": 5.3,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-601",
                  "description": "CWE-601 URL Redirection to Untrusted Site",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T10:00:21.839Z",
            "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "shortName": "Symfony"
          },
          "references": [
            {
              "name": "CVE-2026-134790",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://symfony.com/cve-2026-134790"
            },
            {
              "name": "GHSA-xf2q-gfhq-mv2q",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844"
            }
          ],
          "source": {
            "advisory": "GHSA-xf2q-gfhq-mv2q",
            "discovery": "UNKNOWN"
          },
          "title": "Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652",
          "x_generator": {
            "engine": "symfony/ghsa-to-cve"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "assignerShortName": "Symfony",
        "cveId": "CVE-2026-134790",
        "datePublished": "2026-11-25T10:00:21.839Z",
        "dateReserved": "2026-11-22T17:09:05.968Z",
        "dateUpdated": "2026-11-25T10:00:21.839Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }