Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97895 Overview
CVE-2026-97895 is a privilege escalation vulnerability in Krayin Laravel CRM versions up to and including 2.2.5. The flaw resides in packages/Webkul/Admin/src/Http/Controllers/Settings/UserController.php within the User Management component. An authenticated low-privileged user can manipulate the role_id parameter to assign themselves or other accounts roles beyond their authorized scope. The weakness is classified as improper privilege management [CWE-266] and is exploitable remotely over the network. The maintainers addressed the issue in release 2.2.6 with commit 5469d70336fbb25e8e513683e82b32982ce8aa82.
Critical Impact
Authenticated users can escalate privileges by assigning unauthorized roles, enabling access to administrative functionality within the CRM.
Affected Products
- Krayin Laravel CRM versions up to and including 2.2.5
- Component: packages/Webkul/Admin/src/Http/Controllers/Settings/UserController.php (User Management)
- Fixed in Krayin Laravel CRM 2.2.6
Discovery Timeline
- 2026-09-25 - CVE-2026-97895 published to the National Vulnerability Database
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97895
Vulnerability Analysis
The vulnerability stems from the absence of hierarchical and scope-based validation when a user record is updated through the Settings User Management controller. The application accepts the role_id parameter from the request without verifying whether the acting user is authorized to assign that role. A user with limited privileges can submit a modified request and assign an elevated role to their own account or to another user, bypassing the intended role hierarchy.
The underlying weakness is tracked as [CWE-266: Incorrect Privilege Assignment]. The exploit has been publicly disclosed through the researcher's advisory and the project's issue tracker, which lowers the barrier for opportunistic abuse against exposed CRM deployments.
Root Cause
Krayin uses a bouncer()->getAuthorizedUserIds() scope to restrict which users and roles a given actor can view and manage. Prior to the fix, the RoleDataGrid and UserDataGrid data sources did not include the acting user's data scope when enumerating roles, and the user update controller did not reject role assignments outside the actor's permitted hierarchy. As a result, a group or individual scoped user could reference role identifiers belonging to higher-privileged accounts.
Attack Vector
Exploitation requires an authenticated session with low privileges. The attacker issues a crafted HTTP request to the user update endpoint, substituting a privileged role_id value. No user interaction is required beyond the attacker's own request. Successful exploitation grants administrative capabilities within the CRM, including access to leads, contacts, and configuration settings controlled by the elevated role.
// Patch excerpt - RoleDataGrid.php: scope roles to the acting user
/**
* Scope the listing to the acting user's data scope. A `global` scope (or a full
* administrator) returns null and sees every role; a `group` scope sees the roles created
* within their group; an `individual` scope sees only the roles they created. In every case
* the user's own assigned role is included, so they can always see the role they belong to.
*/
if ($userIds = bouncer()->getAuthorizedUserIds()) {
$ownRoleId = auth()->guard('user')->user()?->role_id;
$queryBuilder->where(function ($query) use ($userIds, $ownRoleId) {
$query->whereIn('roles.created_by', $userIds)
->orWhere('roles.id', $ownRoleId);
});
}
Source: GitHub Laravel CRM Commit 5469d703
// Patch excerpt - UserDataGrid.php: scope user listings by creator and ownership
if ($userIds = bouncer()->getAuthorizedUserIds()) {
$queryBuilder->where(function ($query) use ($userIds) {
$query->whereIn('users.created_by', $userIds)
->orWhereIn('users.id', $userIds);
});
}
Source: GitHub Laravel CRM Commit 5469d703
Detection Methods for CVE-2026-97895
Indicators of Compromise
- HTTP POST or PUT requests to the Krayin user update endpoint containing a role_id value that does not match the authenticated session's authorized role scope.
- Unexpected changes to the role_id column in the users table, especially for accounts promoted to administrator-equivalent roles.
- Login activity from a previously low-privileged account that suddenly accesses administrative routes such as role and user management screens.
Detection Strategies
- Audit application logs for user update requests where the submitted role_id was created by a different user than the actor, outside the actor's bouncer() scope.
- Compare current role_id assignments against a known-good baseline exported before the upgrade to 2.2.6.
- Review web server access logs for repeated requests to /admin/settings/users/* with parameter tampering patterns.
Monitoring Recommendations
- Enable database query logging on the users and roles tables to capture role changes with the acting user context.
- Alert on privilege-level changes within the CRM, particularly promotions to roles with full permissions.
- Monitor for new user accounts created by non-administrator accounts following the disclosure date.
How to Mitigate CVE-2026-97895
Immediate Actions Required
- Upgrade Krayin Laravel CRM to version 2.2.6 or later, which contains commit 5469d70336fbb25e8e513683e82b32982ce8aa82.
- Review all existing user accounts and verify that assigned role_id values match the intended privilege level.
- Rotate credentials for any account suspected of being used to perform unauthorized role assignments.
Patch Information
The fix is included in Krayin Laravel CRM Release v2.2.6 and merged via Pull Request #2621, which resolves Issue #2616. Technical details are available in the GitHub Privilege Escalation Advisory and VulDB CVE-2026-97895.
Workarounds
- Restrict access to the CRM administrative interface to trusted networks via a web application firewall or reverse proxy ACL until the upgrade is applied.
- Temporarily reduce the number of accounts that can access the Settings User Management module to the minimum required for operations.
- Add server-side validation at the reverse proxy layer to reject requests to the user update endpoint from non-administrator sessions.
# Upgrade Krayin Laravel CRM to the patched release
cd /path/to/laravel-crm
git fetch --tags
git checkout v2.2.6
composer install --no-dev --optimize-autoloader
php artisan migrate --force
php artisan config:clear && php artisan cache:clear
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

