Fix cross-scanner deduplication endpoint parsing (#10215) by valentijnscholten · Pull Request #13964 · DefectDojo/django-DefectDojo

@valentijnscholten

Fix incorrect endpoint parsing when endpoints lack a protocol (scheme).
When endpoints are converted to strings without a protocol, hyperlink.parse()
misinterprets the hostname as the scheme, causing deduplication to fail.

This fix normalizes endpoint strings by prepending '//' if '://' is missing,
replicating the behavior from dojo/endpoint/utils.py line 265.

Fixes DefectDojo#10215

mtesauro

Maffooch

blakeaowens

Maffooch pushed a commit to valentijnscholten/django-DefectDojo that referenced this pull request

Feb 16, 2026
…efectDojo#13964)

Fix incorrect endpoint parsing when endpoints lack a protocol (scheme).
When endpoints are converted to strings without a protocol, hyperlink.parse()
misinterprets the hostname as the scheme, causing deduplication to fail.

This fix normalizes endpoint strings by prepending '//' if '://' is missing,
replicating the behavior from dojo/endpoint/utils.py line 265.

Fixes DefectDojo#10215