CVE-2025-7106
published medium CVSS 3.0 · 5.3Authorization Bypass due to Incorrect Access Control in danny-avila/librechat
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| danny-avila | — | danny-avila/librechatunspecified to < v0.7.9 | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| danny-avila | danny-avila/librechat | unspecified to < v0.7.9 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-284 CWE-284 Improper Access Control
References
2Provider assertions
2@huntr_ai · cna
Authorization Bypass due to Incorrect Access Control in danny-avila/librechat
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e1663bc0ece85c303e5b5e785343771a3482e154eab7d4e8e5e0d6d52f0292a9
- Ingested
- 23 Sep 2026, 08:58:27 UTC
- Source record
- Official CVE record