CVE-2026-46478: FlowiseAI: DatasetRow create+update mass-assignment allows cross-workspace row takeover
Flowise copies dataset-row request bodies onto a `DatasetRow` with `Object.assign` in `packages/server/src/services/dataset/index.ts`. A member of one workspace can rebind a row through `datasetId`, or set `workspaceId`, and expose its content to a dataset in another workspace. Versions up to 3.1.1 are affected. Upgrade to 3.1.2.
Published May 14, 2026 · Updated Jul 7, 2026 · Analysis Oct 27, 2026
What an attacker can do
On create (line 274) and update (line 315), the code runs Object.assign(newRow, rowBody) and accepts rowBody.id and rowBody.datasetId as sent. There is no allowlist (CWE-915). The server resets only some ownership fields after the copy. Commit 840d2ae fixed the identical pattern in DocumentStore, and the dataset entity itself is covered by CVE-2026-46477.
Dataset rows are the individual training and evaluation records. The report says a member can attach a row to a dataset in another workspace through datasetId, so the row's content lands in the destination workspace. A workspaceId overwrite on a row update moves it the same way, and the source workspace loses access without an audit entry.
What an attacker needs: an account in one workspace with edit permission on a row, and the identifier of a dataset or workspace elsewhere. The advisory says workspace UUIDs are exposed through the /api/v1/workspaces listing and workspaceId fields in other objects. It also covers an attacker writing rows into a dataset they should not touch, which is an integrity issue for evaluation data. Teams that run evals on sensitive prompts and outputs are the ones to check.
Who is affected
The flowise npm package up to and including 3.1.1 is affected. Multi-workspace deployments using datasets are exposed.
Check the version:
npm ls flowiseFor Docker, check the image tag.
flowise
- Ecosystem
- npm
- Affected
- <= 3.1.1
- Fixed in
- 3.1.2
- Check
npm ls flowise
How to fix it
Upgrade to flowise 3.1.2:
npm install -g [email protected]Pull request 6051 puts an allowlist on the dataset and dataset-row writers. The advisory gives no workaround. After the upgrade, check rows in each dataset, looking for rows you did not add and for datasets that lost rows.
How to tell if you were hit
Search API logs for POST and PUT calls to /api/v1/datasetrows whose bodies contain id, datasetId or workspaceId, especially a datasetId outside the caller's workspace.
Compare row counts per dataset with a backup. Rows that appear in a dataset with no matching author, or vanish from the original one, are the sign of this attack.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Type: Mass assignment via Object.assign(entity, body) -> client-controlled workspaceId (and on create, id) overwritten on the DatasetRow entity -> cross-workspace data takeover and IDOR. File: packages/server/src/services/dataset/index.ts Root cause: The DatasetRow controller/service constructs a new DatasetRow() 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 datasetrow entity's sibling controllers and as DocumentStore before it was patched in commit 840d2ae.
Affected Code
File: packages/server/src/services/dataset/index.ts
// create (line 274) and update (line 315)
Object.assign(newRow, rowBody) // <-- BUG: rowBody.id, rowBody.datasetId acceptedWhy 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
- 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.
- Attacker creates a datasetrow in workspace A via the documented API (or reuses an existing one they own). They note its entity
id. - Attacker issues a
PUT /api/v1/datasetrows/<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. - The controller calls
Object.assign(updateEntity, body). The body'sworkspaceIdoverwrites the entity'sworkspaceIdfield. The persistence layer commits the row. - Final state: the datasetrow 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 datasetrow 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). DatasetRows hold individual training/evaluation records. The mass assignment lets a member rebind a row to a Dataset in another workspace via datasetId, exposing the row content to the destination workspace. Preconditions: Authenticated session with edit permission for the source datasetrow. 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).
// Allowlist pattern (matches commit 840d2ae for DocumentStore):
const updatedDatasetRow = new DatasetRow()
if (body.<allowed_field_1> !== undefined) updatedDatasetRow.<allowed_field_1> = body.<allowed_field_1>
if (body.<allowed_field_2> !== undefined) updatedDatasetRow.<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.
Credited to offset.
Questions
- How does this differ from the Flowise Dataset advisory?
That one moves a whole dataset through
workspaceId. This one concerns single rows:datasetIdandidfrom the body are accepted, so a row can be rebound to a dataset in another workspace.- Is the same pull request the fix?
Yes, pull request 6051 covers both entities, and it is shipped in Flowise 3.1.2. Versions up to and including 3.1.1 are affected.
- What privileges does the attacker need?
An authenticated account with permission to edit the source row. The CVSS 4.0 vector shows low privileges and no user interaction.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
