The db.changeUserPassword() is in history. Any user that can connect to the mongo shell can use the uparrow to see the changed password in plain text.
Workaround:
Prehash the password and change it with something like the following:
db.system.users.update(
{ "pwd" : "' + hashedoldpassword + '"}, { $set:
{ "pwd" : "' + hashednewpassword + '"}} )
- duplicates
 - 
                    
SERVER-9939 createUser and updateUser commands aren't filtered from shell history, even though they may contain user's password
-         
 - Closed
 
 -