Flowise before 3.1.2 contains a mass assignment vulnerability in the PUT /api/v1/user endpoint that allows authenticated users to directly modify the credential field without validation. Attackers can bypass password change verification and session invalidation by supplying a crafted password hash, establishing persistent account access after temporary session compromise.
Flowise before 3.1.2 contains a mass assignment vulnerability in the PUT /api/v1/user endpoint that allows authenticated users to directly modify the credential field without validation. Attackers can bypass password change verification and session invalidation by supplying a crafted password hash, establishing persistent account access after temporary session compromise.
Flowise before 3.1.2 contains a mass assignment vulnerability in the PUT /api/v1/user endpoint that allows authenticated users to directly modify the credential field without validation. Attackers can bypass password change verification and session invalidation by supplying a crafted password hash, establishing persistent account access after temporary session compromise.
### Summary
A Mass Assignment vulnerability in the PUT /api/v1/user endpoint allows authenticated users to directly modify restricted user fields, including the credential (password hash), bypassing the intended password change workflow.
Because the endpoint forwards the entire request body to the service layer without filtering, an attacker can override the credential field without providing the current password.
This bypasses several security protections including:
- old password verification
- password hashing enforcement
- password policy validation
- session invalidation on password change
While the vulnerability cannot be used to modify other users due to an ID check in the controller, it allows attackers who obtain a temporary session (e.g., via token theft or XSS) to establish persistent account access.
### Details
The endpoint **PUT /api/v1/user** allows authenticated users to update their user profile.
The controller checks that the authenticated user matches the provided id, preventing direct IDOR:
```typescript
const currentUser = req.user
const { id } = req.body
if (currentUser.id !== id) {
throw new InternalFlowiseError(StatusCodes.FORBIDDEN)
}
```
However, the controller forwards the entire request body directly to the service layer without filtering:
```typescript
const user = await userService.updateUser(req.body)
```
Inside UserService.updateUser, the incoming data is merged into the existing user entity:
```typescript
updatedUser = queryRunner.manager.merge(User, oldUserData, newUserData)
```
Because newUserData is derived from req.body and there is no field allowlist, any field present in the User entity may be modified.
This includes sensitive fields such as:
- credential
- tempToken
- tokenExpiry
- status
- email
The service implements a secure password change workflow that requires the following fields:
```typescript
oldPassword
newPassword
confirmPassword
```
Example code:
```typescript
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.
### PoC
**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
```http
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.
### Impact
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:
- An attacker temporarily obtains a user's session (XSS, token leak, shared device, etc.)
- The attacker sends the crafted update request with a new password hash
- The attacker now permanently controls the account
- Authentication logic bypass
- Privilege persistence after compromise
- Weak account recovery guarantees
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Jun 20, 2026, 3:24:44 PM
dateUpdated: Nov 8, 2026, 2:05:53 PM
1 related source bulletins · separate from aliases
WID-SEC-W-2026-0626: Flowise: Mehrere Schwachstellen
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-915
Original publisher date fields
published: 2026-06-20T16:17:04.940
lastModified: 2026-06-22T18:36:28.807
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.