Symfony vulnerable to open redirect via browser-sanitized URLs
Description
The Request class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the Request class to redirect users to another domain.
Resolution
The Request::create methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Sam Mush - IPASSLab && ZGC Lab for reporting the issue and Nicolas Grekas for providing the fix.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | symfony/http-foundation | < 5.4.46, >= 6.0.0, < 6.4.14, >= 7.0.0, < 7.1.7 | 5.4.46, 6.4.14, 7.1.7 |
References
- https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp
- https://nvd.nist.gov/vuln/detail/CVE-2024-50345
- https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2024-50345.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50345.yaml
- https://github.com/symfony/symfony
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://symfony.com/cve-2024-50345
- https://url.spec.whatwg.org
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-601- Platform
- Composer
- Package
symfony/http-foundation- Disclosed
- 06.11.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-mrqx-rp3w-jpjp - CC BY 4.0
Vulnerability history: symfony/http-foundation
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 14
- First → latest
- 12.2019 06.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 3
- Medium 8
- Low 2
Disclosures per year
- 2019: 2
- 2020: 1
- 2021: 0
- 2022: 4
- 2023: 0
- 2024: 5
- 2025: 1
- 2026: 1
-
Symfony vulnerable to open redirect via browser-sanitized URLs this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.