Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

This PR implements stricter parsing of URL hosts and schemes.
It hardens the codebase by making our interpretation or URLs closer to the spec.
This should help close potential semantic gaps between different layers of infrastructure.
The robustness principle is dead.

This topic has been raised by @zer0yu @P3ngu1nW @9vvert - thanks to them!

@nicolas-grekas nicolas-grekas merged commit cd205e4 into symfony:6.4 Nov 6, 2025
10 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the hf-harden-parse-url branch November 13, 2025 14:56
@9vvert
Copy link

9vvert commented Nov 15, 2025

Thanks for all your hard work on fixing this issue!
By the way, could you please assign a CVE for this vulnerability? Your assistance would be highly appreciated.
(if possible, the contributors are as follows:
Enze Wang
Jingcheng Yang
Zehui Miao
Jianjun Chen
)

@OskarStark
Copy link
Contributor

AFAIK this is not a security vulnerability, otherwise it would be merged in 5.4 as well.

@9vvert
Copy link

9vvert commented Nov 15, 2025

Well. Still thank you for your time to fix it ! : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants