Skip to content
Laskyr

symfony/symfony security advisory

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

CVE-2026-133749 is a low-severity authentication bypass vulnerability in the PHP package symfony/symfony (CVSS 2.3), published 25 November 2026. It is fixed in 5.4.57; earlier versions are affected. Exploiting it needs a low-privilege user account.

published 2026-11-25

2.3 Low CVSS 4.0

Fixed in symfony/symfony 5.4.57

This authentication bypass issue affects symfony/symfony versions >= 2.0.0, < 5.4.57. Upgrade to the fixed version for your release line (5.4.57). The newest release, 8.2.0, is not affected.

Affected versions
>= 2.0.0, < 5.4.57
Fixed in
5.4.57
Newest release
8.2.0
Type
Authentication bypass
CWE-287
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-29

Is your symfony/symfony version affected?

Run composer show symfony/symfony in your project, then enter the version. We check it against this and every other known symfony/symfony advisory.

Who can exploit CVE-2026-133749

Your app is only exposed if it uses the affected part of symfony/symfony. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

Technical details

Weakness

Authentication bypass CWE-287

A flaw in the login or identity check lets someone be treated as logged in, or as another user, without valid credentials.

An attacker may gain access to accounts, potentially including administrators.

General description of this issue type. The advisory below covers this bug.

CVSS 4.0 breakdown

Attack vector
Network (remote)
Attack complexity
Low
Attack requirements
Specific conditions
Privileges required
Low
User interaction
None
Confidentiality impact
None
Integrity impact
Low
Availability impact
None

CVSS vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

How to fix CVE-2026-133749 in symfony/symfony

  1. Find the installed version: composer show symfony/symfony. If you never required it yourself, composer why symfony/symfony shows which package pulls it in.
  2. Update it: composer update symfony/symfony --with-all-dependencies. You need 5.4.57 or newer.
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "symfony/symfony": "^5.4.57" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-133749.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for authentication bypass issues while the upgrade waits. None of it replaces the fix.

Is your project exposed to CVE-2026-133749?

Check the one package here, or check everything your project installs at once.

  1. Check symfony/symfony Enter your installed version and compare it with every known symfony/symfony advisory. Check my version
  2. Check your whole composer.lock The free checker compares every locked package with the same advisory data composer audit uses. Check composer.lock

The CVE-2026-133749 advisory

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.

Description from the CVE record, via the NVD entry for CVE-2026-133749. Advisory title: “CVE-2026-133749: Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers”.

References

Other symfony/symfony advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.