{"id":"GHSA-8wx3-8m4x-g5h4","aliases":["GHSA-8wx3-8m4x-g5h4"],"related":[],"kind":"vulnerability","state":"published","title":"FOSUserBundle User Identity Validation Vulnerability","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2024-05-15T21:43:23.000Z","modified":"2026-07-16T18:45:48.271Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.2.1"}],"ecosystem":"Packagist","package":"friendsofsymfony/user-bundle","purl":"pkg:composer/friendsofsymfony/user-bundle","source":"ghsa"}],"references":[{"url":"https://github.com/FriendsOfSymfony/FOSUserBundle/commit/1b8bc18e3d99ef0b52b4141f20da323033d6be9b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfSymfony/FOSUserBundle/commit/5a36e2958068d1e6501dc8cf39bbae3ebb859d9f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/user-bundle/2012-07-10-1.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfSymfony/FOSUserBundle","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Changelog.md","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8wx3-8m4x-g5h4","url":"https://github.com/advisories/GHSA-8wx3-8m4x-g5h4","licence":"CC-BY-4.0","modified":"2026-07-16T18:45:48.271Z"}],"updatedAt":"2026-11-25T22:56:31.663Z"}