Alta

Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization

  • Publicada: 04.08.2026
  • Actualizado: 11.10.2026 10:22

summary:

In Flowise, the /api/v1/files route is protected only by the feat:files feature gate and does not enforce checkPermission(...) on either GET or DELETE. As a result, any authenticated API key within the organization, even one with unrelated permissions, can list and delete files belonging to other workspaces in the same organization.

details:

The /files route is mounted with IdentityManager.checkFeatureByPlan('feat:files') only and has no additional permission middleware. In the controller:

  • getAllFiles uses only req.user.activeOrganizationId and calls getFilesListFromStorage(activeOrganizationId), which recursively lists files under the organization storage root
  • deleteFile reads activeWorkspaceId, but only uses it for storage quota bookkeeping; the actual deletion is performed using activeOrganizationId + user-controlled path

As a result, the API key’s permissions and activeWorkspaceId are not used to restrict file access.
In the local test environment,an API key bound to workspace 1592b32a-a11b-4996-80b6-e1c4c2969d88 with only ["tools:view"] was created, then successfully:

  • called GET /api/v1/files and received 200 OK
  • listed a test file stored under a different workspace, f92a9a4d-392e-4db2-af82-d14e1d553446
  • called DELETE /api/v1/files?path=f92a9a4d-392e-4db2-af82-d14e1d553446/poc-cross-workspace.txt and received 200 OK
  • confirmed the file was removed by re-querying the file list

impact:

Any low-privileged API key holder within the same organization can list and delete files from other workspaces without any file-specific permission. This breaks workspace isolation inside the organization and can lead to unauthorized file access and destructive tampering.

reproduction steps:

  1. Log in as a user who can create API keys, and create a key with only an unrelated permission, for example:
bash
curl -i -b tamako.cookie \
  -H 'x-request-from: internal' \
  -H 'Content-Type: application/json' \
  -d '{"keyName":"poc-files-noperm","permissions":["tools:view"]}' \
  http://localhost:8080/api/v1/apikey
  1. Record the returned API key. In my local test, the key was:
  • ykT6h4Q-u2PZDJmy2kMLWWKL_N42u8mHfYSvHC5Ja0E
  1. Prepare a test file under a different workspace within the same organization, for example:
  • f92a9a4d-392e-4db2-af82-d14e1d553446/poc-cross-workspace.txt
  1. Use the low-privileged API key to list files:
bash
curl -i \
  -H 'Authorization: Bearer ykT6h4Q-u2PZDJmy2kMLWWKL_N42u8mHfYSvHC5Ja0E' \
  http://localhost:8080/api/v1/files
  1. Observe a 200 OK response that includes a file from another workspace, for example:
js
[{"name":"poc-cross-workspace.txt","path":"f92a9a4d-392e-4db2-af82-d14e1d553446/poc-cross-workspace.txt","size":19}]
  1. Use the same API key to delete that file:
bash
curl -i -X DELETE --get \
  -H 'Authorization: Bearer ykT6h4Q-u2PZDJmy2kMLWWKL_N42u8mHfYSvHC5Ja0E' \
  --data-urlencode 'path=f92a9a4d-392e-4db2-af82-d14e1d553446/poc-cross-workspace.txt' \
  http://localhost:8080/api/v1/files
  1. Observe a 200 OK response:
js
{"message":"file_deleted"}
  1. Call GET /api/v1/files again and confirm that the file is no longer present.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm flowise < 3.1.3 3.1.3

Referencias

Puntuación CVSS -
Vector CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
Debilidad (CWE)
CWE-862
Plataforma
npm
Paquete
flowise
Publicada
04.08.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-wp74-f5hh-5f3r - CC BY 4.0

Historial de vulnerabilidades: flowise

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (114) en el archivo
Entradas en total
114
Primera → última
04.2024 10.2026
Sin corrección
16
Explotada en ataques
0

Distribución por gravedad

  • Crítica 28
  • Alta 62
  • Media 24

Divulgaciones por año

  1. 2024: 11
  2. 2025: 22
  3. 2026: 81
Gravedad:
  1. Crítica CVE-2026-69259 < 3.1.3 3.1.3
  2. Crítica CVE-2026-69256 < 3.1.3 3.1.3
  3. Crítica CVE-2026-69253 < 3.1.3 3.1.3
  4. Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization esta entrada
    Alta CVE-2026-69252 < 3.1.3 3.1.3
  5. Crítica CVE-2026-69251 < 3.1.3 3.1.3
  6. Alta · 8.8 CVE-2026-46444 < 3.1.2 3.1.2
  7. Alta CVE-2026-46443 < 3.1.2 3.1.2
  8. Alta CVE-2026-56274 < 3.1.2 3.1.2
  9. Alta · 7.5 CVE-2026-46440 < 3.1.2 3.1.2
  10. Alta · 9.8 CVE-2026-41276 < 3.1.0 3.1.0
  11. Alta CVE-2026-41274 < 3.1.0 3.1.0
  12. Alta · 7.5 CVE-2026-41275 < 3.1.0 3.1.0
  13. Alta · 7.1 CVE-2026-41271 < 3.1.0 3.1.0
  14. Alta · 7.1 CVE-2026-41272 < 3.1.0 3.1.0
  15. Alta · 7.1 CVE-2026-41269 < 3.1.0 3.1.0
  16. Alta · 7.7 CVE-2026-41268 < 3.1.0 3.1.0
  17. Alta · 7.5 CVE-2026-41266 < 3.1.0 3.1.0
  18. Crítica · 8.8 CVE-2026-41137 < 3.1.0 3.1.0
  19. Crítica · 9.9 CVE-2026-40933 < 3.1.0 3.1.0
  20. Alta CVE-2026-30824 < 3.0.13 3.0.13
  21. Alta · 7.7 CVE-2026-30822 < 3.0.13 3.0.13
  22. Alta CVE-2026-30821 < 3.0.13 3.0.13
  23. Crítica · 9.9 CVE-2025-61913 < 3.0.8, < 3.0.8 3.0.8
  24. Alta · 8.3 CVE-2025-61687 >= 3.0.7, < 3.0.8 3.0.8
  25. Crítica · 9.8 CVE-2025-55346 <= 2.2.7-patch.1 sin corrección
  26. Alta CVE-2025-71336 >= 2.2.7-patch.1, < 3.0.6 3.0.6
  27. Crítica · 9.8 CVE-2025-71334 >= 2.2.8, < 3.0.6 3.0.6
  28. Crítica · 9.1 CVE-2025-71324 >= 3.0.5, < 3.0.6 3.0.6
  29. Crítica · 10.0 CVE-2025-59528 >= 3.0.5, < 3.0.6 3.0.6
  30. Alta · 7.5 CVE-2025-59527 >= 3.0.5, < 3.0.6 3.0.6
  31. Crítica · 9.1 CVE-2025-57164 >= 3.0.5, < 3.0.6 3.0.6
Mostrar más (10) Mostrando 80 de 90

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.