CVE-2025-7106: danny-avila/librechat · Improper Access Control
Affects danny-avila/librechatSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| danny-avila danny-avila/librechat | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2025-7106, organizations should immediately update to the fixed version of danny-avila/librechat once available, ensuring the access control logic correctly requires all specified permissions rather than any single permission. In the interim, a code review and patch can be applied to the `checkAccess` function to replace the use of `permissions.some()` with a method that verifies all required permissions are present, such as `permissions.every()`. Additionally, organizations should audit existing user roles and permissions to identify and restrict any users who may have been granted excessive privileges due to this flaw. Implementing additional monitoring and alerting on permission changes and agent creation activities can help detect exploitation attempts. Employing defense-in-depth strategies, such as network segmentation and limiting access to the librechat management interfaces, can reduce exposure. Finally, conducting security awareness training for administrators and users about the risks of improper access control and the importance of role-based permissions can help prevent misuse.
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.