# CVE-2025-7106: Authorization Bypass due to Incorrect Access Control in danny-avila/librechat

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-09-23T09:54:33.716Z
- Modified: 2026-10-11T20:10:00.200Z
- Weaknesses: CWE-284, CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @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.

(As written by CVE List.)

## Affected

- danny-avila danny-avila/librechat: from unspecified before v0.7.9
- librechat librechat: before 0.7.9

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://huntr.com/bounties/7de2765b-d1fe-4495-9144-220070857c48> (patch, third-party-advisory)
- <https://github.com/danny-avila/librechat/commit/91a2df47599c09d80886bfc28e0ccf1debd42110> (patch)

## Sources

- CVE List: [CVE-2025-7106](https://www.cve.org/CVERecord?id=CVE-2025-7106), CVE Terms of Use, modified 2025-09-23
- NVD: [CVE-2025-7106](https://nvd.nist.gov/vuln/detail/CVE-2025-7106), Public domain, modified 2026-10-11

---

Page: https://cve.day/CVE-2025-7106 · Whole record: https://cve.day/CVE-2025-7106.json · Rebuilt by cve.day 2026-11-25T22:59:05.043Z
