Problem/Motivation
https://symfony.com/cve-2026-48784
Core has its own copy of the vulnerable logic in UrlGenerator:: generateFromRoute(). In addition to #3592421: Update Symfony routing and http-foundation versions we also need to fix our forked copy.
Steps to reproduce
Proposed resolution
Cherry-pick from Symfony commit 4b63c3a3 UrlGenerator
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3592341
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
znerol commentedComment #4
smustgrave commentedShould we add test coverage for this?
Comment #5
znerol commentedRight. Ported the tests over from the symfony commit as well.
Comment #6
smustgrave commentedRock on, LGTM.
Comment #7
znerol commentedWould be good to run the Test-only changes pipeline as well. I seemingly do not have permissions to kick it off.
Comment #8
smustgrave commentedI also can't without starting a new pipeline but ran locally
Comment #9
dwwBumping to at least Major as this is from Symfony CVE-2026-48784
Comment #10
dwwI also reviewed the Symfony commit, the MR changes, test changes. Everything looks good. Bot is happy. Nothing to complain about. Let's get this in!
Thanks,
-Derek
Comment #11
dwwComment #17
godotislateCommitted and pushed 0105804 to main, 132bc80 to 11.x, 12a9b99 to 11.4.x, and c15356b to 11.3.x.
There are merge conflicts for 11.2.x, 10.6.x, and 10.5.x.
Comment #21
godotislateMRs up for 11.2.x, 10.6.x, 10.5.x.
Comment #22
godotislateThe merge conflict resolution was minor in UrlGenerator.php, because the preceding comment had been edited for code style. I'm going to self-RTBC because the diffs are basically the same.
Comment #23
godotislateComment #30
catchCommitted/pushed to 11.2.x, 10.6.x and 10.5.x, thanks!