Symfony's WebhookController put the webhook type from the request URL into its error message without escaping it. An attacker could craft a link that runs their JavaScript on your site when someone opens it. This is cross-site scripting (XSS).

The controller sent this message when no parser was configured for the requested webhook type. See the Symfony advisory and the fix.

Who is affected

Apps on symfony/webhook (also part of symfony/symfony) from 6.3.0 and before 6.3.8 that expose the Webhook component's controller through a route. The victim has to open the attacker's link. Apps that don't use the Webhook component aren't affected.

What to do

Update to 6.3.8. After the update, the error response no longer includes anything from the request, and it's sent as plain text.

Reported by Maxime Aknin. Nicolas Grekas provided the fix.