danny-avila/librechat is affected by an authorization bypass vulnerability due to improper access control checks. The `checkAccess` function in `api/server/middleware/roles/access.js` uses `permissions.some()` to validate permissions, which incorrectly grants access if only one of multiple required permissions is present. This allows users with the 'USER' role to create agents despite having `CREATE: false` permission, as the check for `['USE', 'CREATE']` passes with just `USE: true`. This vulnerability affects other permission checks as well, such as `PROMPTS`. The issue is present in all versions prior to the fix.
Metrics
Affected Vendors & Products
References
History
Mon, 20 Oct 2025 19:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-639 | |
| CPEs | cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:* | |
| Metrics |
cvssV3_1
|
Tue, 23 Sep 2025 20:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Tue, 23 Sep 2025 16:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Librechat
Librechat librechat |
|
| Vendors & Products |
Librechat
Librechat librechat |
Tue, 23 Sep 2025 10:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | danny-avila/librechat is affected by an authorization bypass vulnerability due to improper access control checks. The `checkAccess` function in `api/server/middleware/roles/access.js` uses `permissions.some()` to validate permissions, which incorrectly grants access if only one of multiple required permissions is present. This allows users with the 'USER' role to create agents despite having `CREATE: false` permission, as the check for `['USE', 'CREATE']` passes with just `USE: true`. This vulnerability affects other permission checks as well, such as `PROMPTS`. The issue is present in all versions prior to the fix. | |
| Title | Authorization Bypass due to Incorrect Access Control in danny-avila/librechat | |
| Weaknesses | CWE-284 | |
| References |
| |
| Metrics |
cvssV3_0
|
Status: PUBLISHED
Assigner: @huntr_ai
Published: 2025-09-23T09:54:33.716Z
Updated: 2025-09-23T19:29:47.785Z
Reserved: 2025-07-05T19:01:51.636Z
Link: CVE-2025-7106
Updated: 2025-09-23T19:29:44.640Z
Status : Analyzed
Published: 2025-09-23T10:15:34.947
Modified: 2025-10-20T19:00:25.837
Link: CVE-2025-7106
No data.