High

FlowiseAI: Dataset create+update mass-assignment allows cross-workspace dataset takeover

  • Disclosed: 14.05.2026
  • Updated: 11.10.2026 10:22

Summary

Type: Mass assignment via Object.assign(entity, body) -> client-controlled workspaceId (and on create, id) overwritten on the Dataset entity -> cross-workspace data takeover and IDOR. File: packages/server/src/services/dataset/index.ts Root cause: The Dataset controller/service constructs a new Dataset() and copies the request body into it via Object.assign(...) without an explicit field allowlist. The request body therefore can include workspaceId, id, createdDate, updatedDate. The server only rebinds some of these after the assign (e.g. on create, it overwrites workspaceId but not id; on update, it overwrites id but not workspaceId). The remaining client-controlled values land directly on the persisted row, breaking workspace isolation. Same root pattern as the dataset entity's sibling controllers and as DocumentStore before it was patched in commit 840d2ae.

Affected Code

File: packages/server/src/services/dataset/index.ts

ts
// create (line 203) and update (line 226)
Object.assign(newDataset, body)         // <-- BUG: body.id, body.workspaceId accepted

Why it's wrong: Object.assign(target, source) copies every own enumerable property of source onto target. The TypeORM/SQL persistence layer below it does not strip ownership-bearing columns, so workspaceId set in the request body lands as the new workspaceId of the persisted row. The DocumentStore patch (commit 840d2ae) demonstrated the intended fix shape (explicit field-by-field allowlist) but it has not been applied to this entity.

Exploit Chain

  1. Attacker is an authenticated member of workspace A. They have a session cookie / JWT for the Flowise web UI. State at this point: attacker can read and write entities scoped to workspace A.
  2. Attacker creates a dataset in workspace A via the documented API (or reuses an existing one they own). They note its entity id.
  3. Attacker issues a PUT /api/v1/datasets/<id> (or equivalent endpoint) with a JSON body that includes "workspaceId": "<workspace-B-id>" (an arbitrary other workspace's UUID). State at this point: the request reaches the controller as a workspace-A authenticated request.
  4. The controller calls Object.assign(updateEntity, body). The body's workspaceId overwrites the entity's workspaceId field. The persistence layer commits the row.
  5. Final state: the dataset row is now owned by workspace B. Workspace B members can see it, modify it, and use it. Workspace A loses access (it no longer satisfies their workspace filter). The original creator's workspace audit shows nothing because the operation looked like a normal update.

Security Impact

Severity: High. Cross-workspace boundary violation by any authenticated workspace member. Attacker capability: Any authenticated user with permission to update a dataset can move it to any workspace whose UUID they can guess or enumerate (workspace UUIDs are exposed in many API responses, so enumeration is trivial). Datasets hold training / evaluation data scoped to a workspace. Moving a Dataset across workspaces via workspaceId overwrite exposes the dataset (rows, schema, references) to the destination workspace. Preconditions: Authenticated session with edit permission for the source dataset. No second factor required. Workspace UUIDs are exposed via the /api/v1/workspaces listing or via any cross-referenced object's workspaceId field, so target enumeration is trivial. Differential: PoC-verified by source inspection of the original GHSA-q4pr-4r26-c69r. Patched build (with the suggested fix below) refuses the workspaceId field; vulnerable build accepts it and persists it.

Suggested Fix

Already fixed in PR https://github.com/FlowiseAI/Flowise/pull/6051 (allowlist pattern applied).

ts
// Allowlist pattern (matches commit 840d2ae for DocumentStore):
const updatedDataset = new Dataset()
if (body.<allowed_field_1> !== undefined) updatedDataset.<allowed_field_1> = body.<allowed_field_1>
if (body.<allowed_field_2> !== undefined) updatedDataset.<allowed_field_2> = body.<allowed_field_2>
// ...whitelist only the documented fields. Never copy id, workspaceId, createdDate, updatedDate from the client.

Regression tests should assert that a request body containing workspaceId, id, createdDate, or updatedDate is rejected (or at minimum: does not change those columns on the persisted row) for both create and update paths.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package flowise < 3.1.2 3.1.2

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-915
Platform
npm
Package
flowise
Disclosed
14.05.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5h9v-837x-m97r - CC BY 4.0

Vulnerability history: flowise

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (114) in the archive
Total entries
114
First → latest
04.2024 10.2026
Without a fix
16
Exploited in attacks
0

Severity breakdown

  • Critical 28
  • High 62
  • Medium 24

Disclosures per year

  1. 2024: 11
  2. 2025: 22
  3. 2026: 81
Severity:
  1. Critical CVE-2026-69259 < 3.1.3 3.1.3
  2. Critical CVE-2026-69256 < 3.1.3 3.1.3
  3. Critical CVE-2026-69253 < 3.1.3 3.1.3
  4. Critical CVE-2026-69251 < 3.1.3 3.1.3
  5. FlowiseAI: Dataset create+update mass-assignment allows cross-workspace dataset takeover this entry
    High · 8.8 CVE-2026-46477 < 3.1.2 3.1.2
  6. High · 8.8 CVE-2026-46444 < 3.1.2 3.1.2
  7. High CVE-2026-46443 < 3.1.2 3.1.2
  8. High CVE-2026-56274 < 3.1.2 3.1.2
  9. High · 7.5 CVE-2026-46440 < 3.1.2 3.1.2
  10. High · 9.8 CVE-2026-41276 < 3.1.0 3.1.0
  11. High CVE-2026-41274 < 3.1.0 3.1.0
  12. High · 7.5 CVE-2026-41275 < 3.1.0 3.1.0
  13. High · 7.1 CVE-2026-41271 < 3.1.0 3.1.0
  14. High · 7.1 CVE-2026-41272 < 3.1.0 3.1.0
  15. High · 7.1 CVE-2026-41269 < 3.1.0 3.1.0
  16. High · 7.7 CVE-2026-41268 < 3.1.0 3.1.0
  17. High · 7.5 CVE-2026-41266 < 3.1.0 3.1.0
  18. Critical · 8.8 CVE-2026-41137 < 3.1.0 3.1.0
  19. Critical · 9.9 CVE-2026-40933 < 3.1.0 3.1.0
  20. High CVE-2026-30824 < 3.0.13 3.0.13
  21. High · 7.7 CVE-2026-30822 < 3.0.13 3.0.13
  22. High CVE-2026-30821 < 3.0.13 3.0.13
  23. Critical · 9.9 CVE-2025-61913 < 3.0.8, < 3.0.8 3.0.8
  24. High · 8.3 CVE-2025-61687 >= 3.0.7, < 3.0.8 3.0.8
  25. Critical · 9.8 CVE-2025-55346 <= 2.2.7-patch.1 no fix
  26. High CVE-2025-71336 >= 2.2.7-patch.1, < 3.0.6 3.0.6
  27. Critical · 9.8 CVE-2025-71334 >= 2.2.8, < 3.0.6 3.0.6
  28. Critical · 9.1 CVE-2025-71324 >= 3.0.5, < 3.0.6 3.0.6
  29. Critical · 10.0 CVE-2025-59528 >= 3.0.5, < 3.0.6 3.0.6
  30. High · 7.5 CVE-2025-59527 >= 3.0.5, < 3.0.6 3.0.6
  31. Critical · 9.1 CVE-2025-57164 >= 3.0.5, < 3.0.6 3.0.6
  32. Critical · 9.8 CVE-2025-8943 <= 3.0.5 no fix
  33. Critical · 10.0 CVE-2025-71338 <= 2.2.7 no fix
  34. Critical CVE-2025-71333 <= 2.2.7 no fix
  35. High CVE-2025-26319 <= 2.2.6 no fix
  36. High CVE-2024-58351 < 2.1.4 2.1.4
  37. High · 7.5 CVE-2024-8182 <= 1.8.2 no fix
  38. High · 7.3 CVE-2024-8181 <= 1.8.2 no fix
  39. High · 7.5 CVE-2024-36421 <= 1.4.3 no fix
  40. High · 7.5 CVE-2024-36420 <= 1.4.3 no fix
  41. High · 7.6 CVE-2024-31621 < 1.8.1 1.8.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.