The vulnerability lies in the Symfony\Component\Mailer\Bridge\Mailomat\Webhook\MailomatRequestParser::validateSignature function. The security advisory and the provided patch clearly indicate that the function used a user-controllable algorithm from the X-MOM-Webhook-Signature header to verify the webhook signature. The vulnerable code, hash_hmac($algo, $data, $secret), takes the $algo variable directly from the request header. An attacker could provide a weaker algorithm like 'md5' to bypass the signature check. The patch rectifies this by hardcoding the algorithm to 'sha256' (hash_hmac('sha256', $data, $secret)) and ensuring the header specifies 'sha256', thus preventing the algorithm downgrade attack.