Closes #21720: Improve validation of URLs containing HTTP basic authentication #21

Closed
opened 2026-04-05 16:21:14 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 4/2/2026

Fixes: #21720

Update EnhancedURLValidator to align its HTTP basic authentication pattern with Django's URLValidator. This tightens validation for username/password segments by excluding :, @, and /, preventing malformed credential strings from being accepted as valid URLs.

*Originally created by @pheus on 4/2/2026* ### Fixes: #21720 Update `EnhancedURLValidator` to align its HTTP basic authentication pattern with Django's `URLValidator`. This tightens validation for username/password segments by excluding `:`, `@`, and `/`, preventing malformed credential strings from being accepted as valid URLs.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#21