Symfony: 21 vulnerabilities fixed, update to 6.4.50, 7.4.23 or 8.1.11 now
On 4 November 2026 Symfony published 21 vulnerabilities at once, fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11. None of them is critical, but several are rated high and affect common patterns such as #[MapRequestPayload], the Serializer and scoped HTTP clients.
The most important vulnerabilities
- Serializer and uploads (CVSS 8.4): if a DTO used with #[MapRequestPayload] had a property of type UploadedFile, a client could have the object built from request data and point it at any file on the server.
- DataUriNormalizer (CVSS 8.2): a data URI with an uppercase scheme (DATA: instead of data:) was opened as a local path, so any file readable by the PHP process could be read.
- ScopingHttpClient (CVSS 8.2): for a URL like //other-domain.example, the client sent the credentials of the default scope, such as a bearer token, to the other host.
- Yaml (CVSS 8.7): certain small YAML documents could block a process for seconds or minutes. 93 bytes were enough for 15 seconds.
- X509Authenticator (CVSS 7.7): escaped commas in a client certificate's subject DN were parsed incorrectly, which allowed tampering with the user identifier.
- Filesystem: Path::isBasePath() and related methods could be tricked with a path like /base/../x://../secret.txt, letting the path escape its base directory.
There are also issues with access rules: HEAD requests bypassed the methods option of access_control, host placeholders in routing could defeat path-based rules, and /index.phpadmin could bypass rules enforced by the web server in front of PHP. trusted_proxies: private_ranges (7.4 and 8.1 only), the HtmlSanitizer, the Ip validator and NoPrivateNetworkHttpClient are affected too. The full list is on GitHub.
What to do now
- Run composer update "symfony/*" within your current version and check that at least 6.4.50, 7.4.23 or 8.1.11 is installed (composer show symfony/http-kernel).
- Add composer audit to your CI if you have not already. It knows the advisories and fails on known vulnerabilities.
- Review DTOs with UploadedFile properties and any use of DataUriNormalizer, ScopingHttpClient and X509 login. The update fixes the vulnerabilities, but it is worth knowing where these patterns live in your project.
Symfony 8.0 no longer gets updates
Symfony 8.0 has been unsupported since July 2026 and did not receive these fixes. If you are still on 8.0, move to 8.1 (supported until the end of January 2027) or straight to 8.2, which is due at the end of November. If you prefer to avoid short release cycles, 7.4 LTS is a good choice with security fixes until November 2029. I am happy to help with that decision and the upgrade.
Sources
- Symfony: security advisories
- GitHub: symfony/symfony advisories
- GHSA-h38r-xrmh-cwhr (Serializer and UploadedFile)
- GHSA-pxj9-jh84-vhm5 (DataUriNormalizer)
- GHSA-gq53-v8w2-gjhj (ScopingHttpClient)
- Symfony: releases and support periods
Related services: Symfony upgrade Symfony maintenance