{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-7106","id":"CVE-2025-7106","title":"Authorization Bypass due to Incorrect Access Control in danny-avila/librechat","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 `CREA","descriptionLong":"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.","published":"2025-09-23T09:54:33.716Z","updated":"2026-10-28T02:30:56.133418121Z","reserved":"2025-07-05T19:01:51.636Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"@huntr_ai"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"huntr.dev"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["danny-avila/librechat"],"affectedProducts":[{"vendor":"danny-avila","product":"danny-avila/librechat","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"v0.7.9","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-284","CWE-639"],"aliases":[],"references":[{"url":"https://huntr.com/bounties/7de2765b-d1fe-4495-9144-220070857c48","tags":["Patch","Third Party Advisory","web"]},{"url":"https://github.com/danny-avila/librechat/commit/91a2df47599c09d80886bfc28e0ccf1debd42110","tags":["Patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/7xxx/CVE-2025-7106.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7106","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00278,"epssPercentile":0.20551,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-7106","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7106","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-7106","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-7106","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}