Laravel's email validation rule accepted addresses that contain line breaks. Combined with how Symfony Mailer and Symfony Mime handle those addresses, an attacker who can enter an email address may be able to change the content of mail your app sends, have it delivered to other recipients, or make your mail server send messages it shouldn't.

No account is needed when the address comes from a public form. See the Laravel advisory and the fix.

Who is affected

Apps on an affected version that validate a user-supplied address with the email rule and then send mail to it. Common places are registration, password reset, email verification and contact forms.

How much harm is possible depends on what your app sends by email and how your mail server is set up. Apps that never send mail to addresses users enter aren't exposed.

What to do

Update laravel/framework to 12.60.0 on 12.x or 13.10.0 on 13.x.

The fix makes the email rule fail for values with line breaks. It also makes Laravel's mailer refuse any address containing a line break, so mail sent to addresses that never went through validation is covered too.

Reported by OmarXtream.