GHSA-8wx3-8m4x-g5h4: Friendsofsymfony/user bundle FOSUserBundle User Identity Validation Vulnerability Vulnerability
MODERATEGHSA-8wx3-8m4x-g5h4 is a MODERATE fosuserbundle user identity validation vulnerability vulnerability (CWE-285: Improper Authorization) affecting Friendsofsymfony/user bundle libraries in the Packagist ecosystem. The issue involves fosuserbundle user identity validation vulnerability. Remediation is available by upgrading affected packages to version 1.2.1.
GHSA-8wx3-8m4x-g5h4 at a Glance
How to Fix GHSA-8wx3-8m4x-g5h4
To remediate this vulnerability, upgrade all affected Friendsofsymfony/user bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade friendsofsymfony/user-bundle to 1.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for friendsofsymfony/user-bundle
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8wx3-8m4x-g5h4, inspect your project dependencies for Friendsofsymfony/user bundle:
inspect dependencies for friendsofsymfony/user-bundle
Analyze the terminal output to locate any version of Friendsofsymfony/user bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Friendsofsymfony/user bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8wx3-8m4x-g5h4 Affected Friendsofsymfony/user bundle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
friendsofsymfony/user-bundle
|
Packagist |
≥ 1.0.0
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is GHSA-8wx3-8m4x-g5h4?
Which Friendsofsymfony/user bundle versions are affected?
What version fixes GHSA-8wx3-8m4x-g5h4?
Is friendsofsymfony/user-bundle affected?
What CWE is associated with GHSA-8wx3-8m4x-g5h4?
How can I check Packagist dependencies for GHSA-8wx3-8m4x-g5h4?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wx3-8m4x-g5h4",
"modified" : "2026-07-16T18:42:40Z",
"published" : "2024-05-15T21:43:23Z",
"aliases" : [ ],
"summary" : "FOSUserBundle User Identity Validation Vulnerability",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "friendsofsymfony/user-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfSymfony/FOSUserBundle/commit/1b8bc18e3d99ef0b52b4141f20da323033d6be9b"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfSymfony/FOSUserBundle/commit/5a36e2958068d1e6501dc8cf39bbae3ebb859d9f"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/user-bundle/2012-07-10-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/FriendsOfSymfony/FOSUserBundle"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Changelog.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:43:23Z",
"nvd_published_at" : null
}
}