email address not supporting international domain names #1596

Closed
opened 2026-02-20 08:11:09 -05:00 by deekerman · 8 comments
Owner

Originally created by @Sasaxxxx on GitHub (May 7, 2023).

Subject of the issue

Problem starts when using international domain names. fx. xxxx@xn--gr-wla37a.com (xxxx@gršć.com)
When user account is created using xxxx@gršć.com (in version of VaultWarden 1.25.2), now VaultWarden v- 1.28.1 do not support this email address.
When this email address is typed in the VaultWarden Web Vault, Error message is shown: " Input is not an email address."

Deployment environment

Error message: "Generation Failed"

  • vaultwarden version: 1. 28.1
  • Install method: Docker on Synology server

  • Clients used:

  • WebVault, desktop, IOS

  • Reverse proxy and version:

  • MySQL/MariaDB or PostgreSQL version:

  • Other relevant details:

Steps to reproduce

  1. account created with username/email: xxxx@gršć.com (v.1.25.1)
    2.. version updated to 1.28.1
  2. IOS app updated, desktop app updated, edge extension updated (since release of 1.25.1)
  3. now when user name/email: xxxx@@gršć.com is used, it is been converted to xxxx@xn--gr-wla37a.com causing error message in WebVault: " Input is not an email address." or in case of App's, no login possible.

Expected behaviour

  1. when xxxx@gršć.com international domain name is used to create account, domain in account name should not be automatically converted to xxxx@xn--gr-wla37a.com.

Actual behaviour

  1. LogIn on VaultWarden Web Vault. Email: xxxx@@gršć.com
  2. error message: "Input is not an email address."

Troubleshooting data

Originally created by @Sasaxxxx on GitHub (May 7, 2023). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue Problem starts when using international domain names. fx. xxxx@xn--gr-wla37a.com (xxxx@gršć.com) When user account is created using xxxx@gršć.com (in version of VaultWarden 1.25.2), now VaultWarden v- 1.28.1 do not support this email address. When this email address is typed in the VaultWarden Web Vault, Error message is shown: " Input is not an email address." ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> Error message: "Generation Failed" <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: 1. 28.1 <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker on Synology server * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> * WebVault, desktop, IOS * Reverse proxy and version: <!-- if applicable --> * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> * Other relevant details: ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> 1. account created with username/email: xxxx@gršć.com (v.1.25.1) 2.. version updated to 1.28.1 3. IOS app updated, desktop app updated, edge extension updated (since release of 1.25.1) 4. now when user name/email: xxxx@@gršć.com is used, it is been converted to xxxx@xn--gr-wla37a.com causing error message in WebVault: " Input is not an email address." or in case of App's, no login possible. ### Expected behaviour <!-- Tell us what you expected to happen --> 1. when xxxx@gršć.com international domain name is used to create account, domain in account name should not be automatically converted to xxxx@xn--gr-wla37a.com. 2. ### Actual behaviour <!-- Tell us what actually happened --> 1. LogIn on VaultWarden Web Vault. Email: xxxx@@gršć.com 2. error message: "Input is not an email address." ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
Author
Owner

@BlackDex commented on GitHub (May 7, 2023):

Is the client converting this before it is sending this?

@BlackDex commented on GitHub (May 7, 2023): Is the client converting this before it is sending this?
Author
Owner

@Sasaxxxx commented on GitHub (May 7, 2023):

it was working for over a year. Today I find out I could not log in on IOS App. Updated VaultWarden form 1.25.1 to 1.28.1 with results as reported.

@Sasaxxxx commented on GitHub (May 7, 2023): it was working for over a year. Today I find out I could not log in on IOS App. Updated VaultWarden form 1.25.1 to 1.28.1 with results as reported.
Author
Owner

@Sasaxxxx commented on GitHub (May 7, 2023):

I can see now following:

Actual behaviour:
LogIn on VaultWarden Web Vault. Email: xxxx@@gršć.com
request for MasterPasword:
underneeth of the logIn button, stated: "Logging in as xxxx@xn--gr-wla37a.com"

so i guess it will try to login as user xxxx@xn--gr-wla37a.com (which is not a user xxxx@@gršć.com). can system tell a difference and convert domains in right way?

@Sasaxxxx commented on GitHub (May 7, 2023): I can see now following: Actual behaviour: LogIn on VaultWarden Web Vault. Email: xxxx@@gršć.com request for MasterPasword: underneeth of the logIn button, stated: "Logging in as xxxx@xn--gr-wla37a.com" so i guess it will try to login as user xxxx@xn--gr-wla37a.com (which is not a user xxxx@@gršć.com). can system tell a difference and convert domains in right way?
Author
Owner

@BlackDex commented on GitHub (May 7, 2023):

Vaultwarden doesn't convert the address. So it could be that the new clients convert them before sending it to the server.

@BlackDex commented on GitHub (May 7, 2023): Vaultwarden doesn't convert the address. So it could be that the new clients convert them before sending it to the server.
Author
Owner

@Sasaxxxx commented on GitHub (May 7, 2023):

is VaultWarden Web Vault server part?

@Sasaxxxx commented on GitHub (May 7, 2023): is VaultWarden Web Vault server part?
Author
Owner

@BlackDex commented on GitHub (May 7, 2023):

No, that is client. But it could be that Bitwarden changed something. I'm not sure.

@BlackDex commented on GitHub (May 7, 2023): No, that is client. But it could be that Bitwarden changed something. I'm not sure.
Author
Owner

@BlackDex commented on GitHub (May 7, 2023):

On a quick look, I'm afraid we can't fix this on our side that easily.
It looks like the web-vault doesn't seem to support this anymore for some reason.

On the web-vault I get a message that it needs to be a valid email address.
It seems to be not working anymore since v1.26.0 already (Which uses v2022.12.0 as web-vault).

@BlackDex commented on GitHub (May 7, 2023): On a quick look, I'm afraid we can't fix this on our side that easily. It looks like the web-vault doesn't seem to support this anymore for some reason. On the web-vault I get a message that it needs to be a valid email address. It seems to be not working anymore since v1.26.0 already (Which uses v2022.12.0 as web-vault).
Author
Owner

@BlackDex commented on GitHub (May 8, 2023):

I also think we can't fix this on the server side.
The reason is, the username (mail address) is linked to the hashed password and master-key.
Changing the mail-address, or trying to match the password-hash on the unicode domain will not work.

I suggest to revert back to v1.25.2, change all mail address to use the punycode address via the web-vault and upgrade after all the users have changed it.

It's not something we can fix unfortunately.

@BlackDex commented on GitHub (May 8, 2023): I also think we can't fix this on the server side. The reason is, the username (mail address) is linked to the hashed password and master-key. Changing the mail-address, or trying to match the password-hash on the unicode domain will not work. I suggest to revert back to v1.25.2, change all mail address to use the punycode address via the web-vault and upgrade after all the users have changed it. It's not something we can fix unfortunately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1596
No description provided.