CVE-2025-7106
September 23, 2025
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.
Affected Packages
https://github.com/danny-avila/librechat.git (GITHUB):
Affected version(s) >=v0.0.1 <v0.7.9Fix Suggestion:
Update to version v0.7.9Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.04