mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #22958] issue: Password Complexity Rule Not Enforced on Password Change #35381
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Mogelmose on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22958
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.8.10
Ollama Version (if applicable)
0.17.7
Operating System
openSUSE Tumbleweed
Browser (if applicable)
Brave v1.88.134
Confirmation
README.md.Expected Behavior
The new password should be validated against the configured `PASSWORD_VALIDATION_REGEX_PATTERN environment variable and rejected if it does not meet the complexity requirements.
Actual Behavior
validate_password()is called withform_data.password(the current/old password) instead ofform_data.new_password. Since the old password already met the rule when it was set, the check always passes.Steps to Reproduce
Logs & Screenshots
Environment variables regarding password validation i have set
PASSWORD_VALIDATION_REGEX_PATTERN=^.{15,}$
ENABLE_PASSWORD_VALIDATION=true
Additional Information
Location
backend/open_webui/routers/auths.py—update_passwordhandlerIn
UpdatePasswordForm, there are two fields —password(current) andnew_password(new). Thevalidate_passwordcall incorrectly references the former.For comparison, the
signupandadd_userhandlers use a single-field form whereform_data.passwordcorrectly refers to the new password being set — so those endpoints are unaffected.@tjbck commented on GitHub (Mar 24, 2026):
Addressed in dev.