symfony/security-http is vulnerable to Authentication Bypass by Primary Weakness
72
High Risk
Affected versions are vulnerable to a validation bypass in UserBadge identifier normalization. The issue occurs because the UserBadge constructor validates that the identifier is not empty and does not exceed MAX_USERNAME_LENGTH. Still, when using $identifierNormalizer, the normalized identifier is computed lazily in getUserIdentifier() without validation, allowing normalizers to return invalid values. An attacker can exploit this by supplying a custom normalizer that returns an empty string or other invalid identifiers, bypassing the constructor's validation and potentially leading to authentication flaws.
You are affected if you are using a version that falls within the vulnerable range.
symfony/security-http is vulnerable to Authentication Bypass by Primary Weakness in versions 7.3.0 - 7.3.7 and 8.0.0 - 8.0.0.
Upgrade the symfony/security-http library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant