Skip to content
MediumVulnerability

GHSA-59fh-9f3p-7m39: Flowise: Mass Assignment in PUT /api/v1/user Allows Authenticated Users to Override Password Hash and Bypass Password Change Verification

Published
Record updated
View JSON
Affected
  • flowise <= 3.1.1
Fixed in
3.1.2

Summary

GHSA-59fh-9f3p-7m39 is a mass assignment flaw in Flowise's PUT /api/v1/user endpoint. The controller forwards the whole request body to userService.updateUser, which merges it into the User entity without a field allowlist. An authenticated user can therefore overwrite the credential field with a chosen bcrypt hash, bypassing old password verification, hashing and policy checks, and session invalidation. The source notes an attacker holding a temporary session, for example via XSS or token theft, could use this for persistent account access, though the ID check prevents changing other users' accounts.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.