Skip to content

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Oct 3, 2025

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

Using HTTP method overriding (or HTTP verb tunneling) for those methods is dangerous and unneeded: the technique has been created to submit forms using HTTP verbs that browsers don't support. GET is not one of them, so that the trick shouldn't be applied to it. HEAD, CONNECT, TRACE are also NOT something browser should do - there's no point for a Symfony app to be the recipient of such requests (well, HEAD maybe, but since it should mimic a GET, it has to be in the list).

This should make Symfony safer by default, since using a POST to tunnel a GET might lead to security-sensitive stuff.

@fabpot
Copy link
Member

fabpot commented Oct 10, 2025

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 05409da into symfony:7.4 Oct 10, 2025
10 of 12 checks passed
@nicolas-grekas nicolas-grekas deleted the deprec-x-method branch October 10, 2025 06:05
This was referenced Oct 27, 2025
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.

5 participants