LowGHSA-mrqx-rp3w-jpjpCVE-2024-50345

Symfony vulnerable to open redirect via browser-sanitized URLs

Published 6 Nov 2024 · Updated 3 Nov 2025

Affected packages

Affected
<5.4.46
Fixed in
5.4.46
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^5.4.46
Affected
>=6.0.0 <6.4.14
Fixed in
6.4.14
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^6.4.14
Affected
>=7.0.0 <7.1.7
Fixed in
7.1.7
Update to the fixed version for your release line, for example:composer require symfony/http-foundation:^7.1.7

Details

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.

Is GHSA-mrqx-rp3w-jpjp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected symfony/http-foundation, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.