Allow single and double quotes in user passwords #11537

Closed
opened 2025-12-29 21:46:31 +01:00 by adam · 1 comment
Owner

Originally created by @LadyFromMars on GitHub (Aug 28, 2025).

Deployment Type

NetBox Enterprise

NetBox Version

v4.2.9

Python Version

3.10

Steps to Reproduce

  1. On the NetBox go to Admin section -> Add user
  2. Add User name and set password that contains either single quote ' or double quote ", for example LjpG’vi8J9XsMzZmRE
  3. Click Create user
  4. You will see general error message that password should match 'OWASP recommendations' and password will not be accepted
Image

Expected Behavior

User passwords should allow quotes

Observed Behavior

If user's password contains quotes (single or double), the error is issued

Originally created by @LadyFromMars on GitHub (Aug 28, 2025). ### Deployment Type NetBox Enterprise ### NetBox Version v4.2.9 ### Python Version 3.10 ### Steps to Reproduce 1. On the NetBox go to Admin section -> Add user 2. Add User name and set password that contains either single quote ' or double quote ", for example LjpG’vi8J9XsMzZmRE 3. Click Create user 4. You will see general error message that password should match 'OWASP recommendations' and password will not be accepted <img width="1792" height="949" alt="Image" src="https://github.com/user-attachments/assets/9215bb72-d198-4fba-be0f-78541f06d768" /> ### Expected Behavior User passwords should allow quotes ### Observed Behavior If user's password contains quotes (single or double), the error is issued
adam added the netbox label 2025-12-29 21:46:31 +01:00
adam closed this issue 2025-12-29 21:46:32 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 28, 2025):

The error message appears to come from a custom password validator that has been configured for your NetBox instance; it's not part of the core product. By default, NetBox enforces only a minimum length and character diversity for passwords (see the AUTH_PASSWORD_VALIDATORS configuration parameter).

Converting this to a discussion as it's not native behavior.

@jeremystretch commented on GitHub (Aug 28, 2025): The error message appears to come from a custom password validator that has been configured for your NetBox instance; it's not part of the core product. By default, NetBox enforces only a minimum length and character diversity for passwords (see the [`AUTH_PASSWORD_VALIDATORS`](https://netboxlabs.com/docs/netbox/configuration/security/#auth_password_validators) configuration parameter). Converting this to a discussion as it's not native behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11537