CVE-2026-133749: Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers

Published Nov 25, 2026
·
Updated

GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() logs a user in programmatically with a Guard authenticator, for example in the registration controllers that MakerBundle generated. This method creates the token and stores it, but it calls neither checkPreAuth() nor checkPostAuth() on the user checker of the firewall. Guard authenticators run both checks when they authenticate a request.

As a consequence, an account that a user checker rejects in checkPostAuth() could still be logged in through this method, for example an expired account.

Applications are affected when they use Guard with a custom user checker that rejects users in checkPostAuth(), and log users in with authenticateUserAndHandleSuccess(). The default user checker also rejects users of the deprecated User class whose credentials expired. This is the issue of GHSA-8f57-m8wj-x65w, for the Guard component of Symfony 5.4. Guard was removed in Symfony 6.0.

GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() now calls the checkPostAuth() method of the user checker of the firewall before it stores the token. AuthenticatorManager::authenticateUser() does the same since the fix for GHSA-8f57-m8wj-x65w. Like authenticateUser(), authenticateUserAndHandleSuccess() doesn't call checkPreAuth(). Programmatic logins skip this check on purpose, for example right after a registration. SecurityBundle now gives the user checkers of the firewalls to the handler, so both symfony/security-guard and symfony/security-bundle must be updated.

As a consequence, an exception thrown by checkPostAuth() now comes out of authenticateUserAndHandleSuccess(). Code that logs users in programmatically may need to catch it.

Affected Software

2 affected components
composer/symfony/security-guard
composer/symfony/security-bundle

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Operational

    If code logs users in programmatically with authenticateUserAndHandleSuccess(), catch exceptions thrown by checkPostAuth().

Event History

Nov 25, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionWeakness

Frequently Asked Questions

1

Which applications are affected in practice?

Applications are affected when they use Guard, have a custom firewall user checker that rejects users in checkPostAuth(), and programmatically log users in through GuardAuthenticatorHandler::authenticateUserAndHandleSuccess(). Affected cases include registration flows generated by MakerBundle that use this method.

2

Can the default user checker make an application vulnerable?

Yes. The default user checker rejects users of the deprecated User class when their credentials have expired, so those users could be logged in programmatically without the post-authentication check.

3

How can I determine whether my application is exposed?

Review programmatic login code for calls to GuardAuthenticatorHandler::authenticateUserAndHandleSuccess(), then check the relevant firewall's user checker. The issue applies if that checker rejects accounts in checkPostAuth(), including expired credentials for the deprecated User class.

4

Are applications using Symfony 6 affected through Guard?

Guard was removed in Symfony 6.0. The described Guard-based programmatic login path therefore does not apply to Symfony 6.0 and later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203