GitHub Advisoryadvisory · Packagist

GHSA-8wx3-8m4x-g5h4 FOSUserBundle User Identity Validation Vulnerability

MEDIUM Published 2024-05-15 Modified 2026-07-16 Official page ↗
Ecosystem
Packagist
Packages
friendsofsymfony/user-bundle
Severity
Moderate
Weaknesses
CWE-285
Reviewed
2024-05-15

Affected packages

• Packagist friendsofsymfony/user-bundle: >= 1.0.0, < 1.2.1 → fixed in 1.2.1

Description

Versions of FOSUserBundle prior to 1.2.1 have been found to be vulnerable to a security issue related to user identity validation. Specifically, user refreshing was performed using the primary key instead of the username, leading to a potential security risk if a user is allowed to change their username. The fix in version 1.2.1 addresses this issue by loading the user using the primary key during refreshing.

Related

Weakness · CWE (1)

  • CWE-285 Improper Authorization weakness

References