NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #293 most downloaded on Packagist
Provides a tight integration of the Security component into the Symfony full-stack framework
Latest stable
v8.1.11
Last release 9 days ago
13 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Rarely documented
notes for 1 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
733 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Changelog ( v8.2.0-BETA1...v8.2.0-BETA2 )
Changelog (v8.2.0-BETA1...v8.2.0-BETA2)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feature #66749 Add the mermaid format to debug:roles and deprecate debugrole-hierarchy ( @nicolas-grekas )
Changelog (v8.1.11...v8.2.0-BETA1)
ldap_users_only when a firewall uses several LDAP authenticators (@nicolas-grekas)target_route apply to impersonation URLs built for a switch_user path (@kbond)resource of resource_metadata work across environments (@nicolas-grekas)text/plain body to the 401 and 403 responses of access_token firewalls (@nicolas-grekas)Access-Control-Allow-Origin: * (@nicolas-grekas)command.invocation and migrate command examples (@nicolas-grekas)oidc_login lazy (@nicolas-grekas)framework.test when the container is compiled (@nicolas-grekas)issuers of the oidc token handler and the authorization_servers of resource_metadata (@nicolas-grekas)not_compromised_password when framework.test is enabled (@nicolas-grekas)security.route_loader to load the routes of all firewalls (@nicolas-grekas)cache.security.discovery by default (@nicolas-grekas)logout_button(), impersonation_button() and impersonation_exit_button() (@nicolas-grekas)cache.app (@nicolas-grekas)KernelBrowser::loginUser() work on stateless access_token firewalls (@nicolas-grekas)mermaid format to debug:roles and deprecate debug:security:role-hierarchy (@nicolas-grekas)re_authentication_entry_point to an authenticator key (@nicolas-grekas)lint:expressions command (@nicolas-grekas)ExpressionCacheWarmer and fail the warmup on invalid listed expressions instead (@nicolas-grekas)ConstantFunctionProvider and deprecate the unrestricted constant() and enum() (@nicolas-grekas)# to vote on # arguments (@nicolas-grekas)oidc_login firewall autowirable (@nicolas-grekas)within and around constraints to order decorators (@nicolas-grekas)SecurityDataCollector to lateCollect() (@nicolas-grekas)CheckRefreshedUserEvent to extend the user-change checks (@kbond)current_user() function to the expression language provider (@seb-jean)AuthorizationChecker::isGrantedForUser to check for guest permissions (@aschempp)firewall option to route definitions (@tilaven)path and CSRF options to switch_user (@kbond)remember_me authenticator option (@kbond)allowedTimeDrift configurable (@jprivet-dev)security #cve-2026-118514 Match HEAD requests when GET is listed in a MethodRequestMatcher ( @nicolas-grekas )
Changelog (v8.1.10...v8.1.11)
[SECURITY] Security release
minor #67551 Stop asserting an empty body for the 401 of a rejected access token ( @nicolas-grekas )
Changelog (v8.1.9...v8.1.10)
[SECURITY] Security release
bug #66808 Fix securitygenerate-token resolving --not-before against the real time (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.8...v8.1.9)
security:oidc:generate-token resolving --not-before against the real time (@nicolas-grekas)# lazy (@nicolas-grekas)access_control expressions (@nicolas-grekas)bug #66268 Dispatch the events of firewalls sharing a context on their own dispatcher (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.7...v8.1.8)
minor #65964 Make two tests survive the FrameworkBundle split of the branch above (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.6...v8.1.7)
bug #65732 Restrict redirections to the current host when sessions are disabled (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.2...v8.1.6)
bug #65024 Always constrain redirect targets to the current host, even without sessions (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.1...v8.1.2)
bug #64404 Fix state leak in LogoutUrlGenerator in async environments (@KevinMartinsDev, @nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0...v8.1.1)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0-RC1...v8.1.0) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0-RC1...v8.1.0)
clientHints, prefetchCache, and prerenderCache ClearSite-Data directives#[AsTaggedItem] attribute to configure voter priorityenforce_key_usage_verification option to the OIDC token handler discovery configuration to opt out of filtering keys without explicit signature usagesecurity.erase_credentials configuration option and the security.authentication.manager.erase_credentials container parameter, as the eraseCredentials() method was removed in Symfony 8.0bug #64338 Fix Security::login() across firewalls (@ousamabenyounes)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0-BETA3...v8.1.0-RC1)
security #cve-2026-45074 Require configuring trusted hosts when using CAS authentication (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0-BETA2...v8.1.0-BETA3)
bug #64198 Allow defining security provider factories without config (@hockdudu)
Changelog (https://github.com/symfony/security-bundle/compare/v8.1.0-BETA1...v8.1.0-BETA2)
security #cve-2026-45074 Require configuring trusted hosts when using CAS authentication (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.13...v8.1.0-BETA1)
enforce_key_usage_verification option to OIDC discovery (@ruudk)# (@Brajk19)SignatureHasher::computeSignatureHash() (@nicolas-grekas)Extension class (@xabbuh)# for voters (@ayyoub-afwallah)Clear-Site-Data directives (@xabbuh)bug #65024 Always constrain redirect targets to the current host, even without sessions (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.14...v8.0.15)
bug #64404 Fix state leak in LogoutUrlGenerator in async environments (@KevinMartinsDev, @nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.13...v8.0.14)
bug #64338 Fix Security::login() across firewalls (@ousamabenyounes)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.12...v8.0.13)
security #cve-2026-45074 Require configuring trusted hosts when using CAS authentication (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.11...v8.0.12)
bug #64198 Allow defining security provider factories without config (@hockdudu)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.8...v8.0.11)
bug #63806 Make the Adapter resettable (@kira0269, @nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.7...v8.0.8)
bug #63454 Fix lazy firewall triggering remember me authentication on POST requests to public routes (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.5...v8.0.6)
bug #62973 fix the security profiler template (@aurac)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.3...v8.0.4)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.0-RC3...v8.0.0) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.0-RC3...v8.0.0)
hide_user_not_found configuration option, use expose_security_errors insteadalgorithm and key options from the OIDC token handler configuration, use algorithms and keyset insteadLazyFirewallContext::__invoke()ExpressionCacheWarmer class finalRateLimiterFactory; use RateLimiterFactoryInterface insteadbug symfony/symfony#62369 [Security] Set OIDC JWKS cache TTL from provider headers (@Ali-HENDA)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.0-RC1...v8.0.0-RC2)
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.0-BETA2...v8.0.0-RC1) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v8.0.0-BETA2...v8.0.0-RC1)
feature symfony/symfony#62090 [Config] Deprecate setting a default value to a node that is required (@GromNaN)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.4...v8.0.0-BETA1)
ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)$this or the internal scope of the loader from PHP config files (@nicolas-grekas)ArrayNodeDefinition::acceptAndWrap() to list alternative types that should be accepted and wrapped in an array (@nicolas-grekas)$singular to NodeBuilder::arrayNode() to decouple plurals/singulars from XML (@nicolas-grekas)access_decision() and access_decision_for_user() (@florentdestremau)RateLimiterFactory (@nicolas-grekas)security.authentication.hide_user_not_found parameter (@xabbuh)algorithm and key (@OskarStark)hide_user_not_found option (@OskarStark)$target to ContainerBuilder::registerAliasForArgument() (@nicolas-grekas)eraseCredentials() from (User|Token)Interface (@chalasr)security #cve-2026-118514 Match HEAD requests when GET is listed in a MethodRequestMatcher ( @nicolas-grekas )
Changelog (v7.4.22...v7.4.23)
[SECURITY] Security release
Changelog ( v7.4.21...v7.4.22 )
Changelog (v7.4.21...v7.4.22)
[SECURITY] Security release
bug #66808 Fix securitygenerate-token resolving --not-before against the real time (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.20...v7.4.21)
security:oidc:generate-token resolving --not-before against the real time (@nicolas-grekas)# lazy (@nicolas-grekas)access_control expressions (@nicolas-grekas)bug #66268 Dispatch the events of firewalls sharing a context on their own dispatcher (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.18...v7.4.20)
bug #65732 Restrict redirections to the current host when sessions are disabled (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.15...v7.4.18)
bug #65024 Always constrain redirect targets to the current host, even without sessions (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.14...v7.4.15)
bug #64404 Fix state leak in LogoutUrlGenerator in async environments (@KevinMartinsDev, @nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.13...v7.4.14)
bug #64338 Fix Security::login() across firewalls (@ousamabenyounes)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.12...v7.4.13)
security #cve-2026-45074 Require configuring trusted hosts when using CAS authentication (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.11...v7.4.12)
bug #64198 Allow defining security provider factories without config (@hockdudu)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.8...v7.4.11)
bug #63806 Make the Adapter resettable (@kira0269, @nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.7...v7.4.8)
bug #63454 Fix lazy firewall triggering remember me authentication on POST requests to public routes (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.5...v7.4.6)
bug #62973 fix the security profiler template (@aurac)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.3...v7.4.4)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.0-RC3...v7.4.0) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.0-RC3...v7.4.0)
Add debug:security:role-hierarchy command to dump role hierarchy graphs in the Mermaid.js flowchart format
Add Security::getAccessDecision() and getAccessDecisionForUser() helpers
Add options to configure a cache pool and storage service for login throttling rate limiters
Register alias for argument for password hasher when its key is not a class name:
With the following configuration:
security:
password_hashers:
recovery_code: auto
It is possible to inject the recovery_code password hasher in a service:
public function __construct(
#[Target('recovery_code')]
private readonly PasswordHasherInterface $passwordHasher,
) {
}
Deprecate LazyFirewallContext::__invoke()
bug symfony/symfony#62369 [Security] Set OIDC JWKS cache TTL from provider headers (@Ali-HENDA)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.0-RC1...v7.4.0-RC2)
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.0-BETA2...v7.4.0-RC1) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.4.0-BETA2...v7.4.0-RC1)
feature symfony/symfony#62090 [Config] Deprecate setting a default value to a node that is required (@GromNaN)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.4...v7.4.0-BETA1)
ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)$this or the internal scope of the loader from PHP config files (@nicolas-grekas)ArrayNodeDefinition::acceptAndWrap() to list alternative types that should be accepted and wrapped in an array (@nicolas-grekas)$singular to NodeBuilder::arrayNode() to decouple plurals/singulars from XML (@nicolas-grekas)access_decision() and access_decision_for_user() (@florentdestremau)$target to ContainerBuilder::registerAliasForArgument() (@nicolas-grekas)bug #62973 fix the security profiler template (@aurac)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.9...v7.3.10)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.7...v7.3.8) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.7...v7.3.8)
bug symfony/symfony#61714 [SecurityBundle] Fix semantic configuration for singulars/plurals in XML (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.3...v7.3.4)
fixXmlConfig() call for issuer (@OskarStark)Changelog (https://github.com/symfony/security-bundle/compare/v7.3.2...v7.3.3) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.2...v7.3.3)
bug symfony/symfony#61194 [Security] Fix added $token argument to UserCheckerInterface::checkPostAuth() (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.1...v7.3.2)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0...v7.3.1) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0...v7.3.1)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0-RC1...v7.3.0) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0-RC1...v7.3.0)
Security::isGrantedForUser() to test user authorization without relying on the session. For example, users not currently logged in, or while processing a message from a message queueOidcTokenHandler (JWE)expose_security_errors config option to display AccountStatusExceptionsecurity.hide_user_not_found config option in favor of security.expose_security_errorsOAuth2TokenHandlerFactory for AccessTokenFactoryOidcTokenHandler and OidcUserInfoTokenHandlerbug symfony/symfony#60419 [SecurityBundle] normalize string values to a single ExposeSecurityLevel instance (@xabbuh)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0-BETA2...v7.3.0-RC1)
bug symfony/symfony#58643 [SecurityBundle] Use Composer InstalledVersions to check if flex is installed (@andyexeter)
Changelog (https://github.com/symfony/security-bundle/compare/v7.3.0-BETA1...v7.3.0-BETA2)
InstalledVersions to check if flex is installed (@andyexeter)feature symfony/symfony#60069 [FrameworkBundle] Deprecate setting the collect_serializer_data to false (@mtarld)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.6...v7.3.0-BETA1)
NodeDefinition::docUrl() (@alexandre-daubois)collect_serializer_data to false (@mtarld)#[IsGranted] (@alexandre-daubois)form_login_ldap by ldap group (@Spomky)eraseCredentials() (@chalasr, @nicolas-grekas)is_granted_for_user() function (@natewiebe13)bug symfony/symfony#61194 [Security] Fix added $token argument to UserCheckerInterface::checkPostAuth() (@nicolas-grekas)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.8...v7.2.9)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.7...v7.2.8) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.7...v7.2.8)
bug symfony/symfony#60266 [Security] Exclude remember_me from default login authenticators (@santysisi)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.6...v7.2.7)
InstalledVersions to check if flex is installed (@andyexeter)bug symfony/symfony#59339 [SecurityBundle] Remove outdated guard from security xsd schema (@chalasr)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.2...v7.2.3)
security.helper (@MatTheCat)bug symfony/symfony#59278 [SecurityBundle] Do not replace authenticators service by their traceable version (@MatTheCat)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.1...v7.2.2)
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.0-RC1...v7.2.0) * no significant changes
Changelog (https://github.com/symfony/security-bundle/compare/v7.2.0-RC1...v7.2.0)
Security::login()One column per quarter.