Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. flowise
  4. ›
  5. CVE-2026-46476

CVE-2026-46476: FlowiseAI: CustomTemplate create+update mass-assignment allows cross-workspace template takeover

May 14, 2026 (updated June 9, 2026)

Type: Mass assignment via Object.assign(entity, body) -> client-controlled workspaceId (and on create, id) overwritten on the CustomTemplate entity -> cross-workspace data takeover and IDOR. File: packages/server/src/services/marketplaces/index.ts Root cause: The CustomTemplate controller/service constructs a new CustomTemplate() 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 customtemplate entity’s sibling controllers and as DocumentStore before it was patched in commit 840d2ae.

References

  • github.com/FlowiseAI/Flowise/commit/f64047bdcf4cbd6a30ec348b9e3f2899ff514e89
  • github.com/FlowiseAI/Flowise/pull/6129
  • github.com/FlowiseAI/Flowise/releases/tag/flowise%403.1.2
  • github.com/FlowiseAI/Flowise/security/advisories/GHSA-728h-4mwj-f2p4
  • github.com/advisories/GHSA-728h-4mwj-f2p4
  • nvd.nist.gov/vuln/detail/CVE-2026-46476

Code Behaviors & Features

Detect and mitigate CVE-2026-46476 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.2

Fixed versions

  • 3.1.2

Solution

Upgrade to version 3.1.2 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/flowise/CVE-2026-46476.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:25:00 +0000.