Skip to content

Symfony

Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers

CVE-2026-133749Published 25 Nov 2026, 10:00 UTC

Real-world risk

0.7/ 10Low

Routine

If the vulnerable configuration applies to you: 1.5

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.3

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from Symfony)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
SymfonyWidespread< 5.4.575.4.57
symfony/security-bundleNiche< 5.4.575.4.57
symfony/security-guardNiche< 5.4.575.4.57

What to do

Update to a fixed version: 5.4.57.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 47), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.27 × threat 0.850.689
  4. Rounded to one decimal between 0.1 and 100.7

How the score works

Exploitation and evidence timeline

  1. 25 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.7 (cvss fallback)

Weakness

CWE-287

References

Get alerts for Symfony

Free email or text alerts when a vulnerability in Symfony reaches risk 8 or higher. Nothing else.