CVE-2021-41268: Remember me cookie persistance after password changes

Written by Symfony blog / Original link on Nov. 24, 2021


Since the rework of the Remember me cookie in Symfony 5.3, the cookie is not invalidated anymore when the user changes its password.

Attackers can therefore maintain their access to the account even if the password is changed as long as they have had the chance to login once and get a valid remember me cookie.


Symfony now makes the password part of the signature by default. In that way, when the password changes then the cookie is not valid anymore.

The patch for this issue is available here for branch 5.3.


We would like to thank Thibaut Decherit for reporting the issue and Wouter J for fixing the issue.

Sponsor the Symfony project.


« New in Symfony 5.4: DependencyInjection Improvements - CVE-2021-41267: Webcache Poisoning via X-Forwarded-Prefix and sub-request »