You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: sharebymail sends the hashed password instead of the plaintext password in the share-notification email #65926
This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
When creating a share-by-mail with a password set at creation time, the recipient (or the share owner, if "send password by mail" is disabled) receives an email containing what appears to be the
Argon2id hash of the password instead of the actual plaintext password. Example of what is received:
3|$argon2id$v=19$m=65536,t=4,p=1$...$...
This string cannot be used by the recipient to unlock the share.
If the password is instead changed afterwards on an already-existing share, the correct plaintext password is sent correctly in that case.
Steps to reproduce
Share a file via email
Set a password for the share in the same step, during creation
Check the password-notification email received: it contains a hash-like string instead of the password
For comparison: edit the same share afterwards and set/change the password: the email this time contains the correct, usable password
Expected behavior
The password-notification email should always contain the plaintext password, both at share creation and on later password changes
Nextcloud Server version
35
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.5
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Activity
LM-vb commentedon Oct 26, 2026
See #65479