If one creates a vulnerability and uses special characters like "/" or "?" in the Vulnerability ID (e.g. TEST/ID), the vulnerability can't be reached afterwards, because the special characters are not properly encoded in the URL.
Steps to Reproduce
Go to {Your-DT-URL}/vulnerabilities
Click on "+ Create Vulnerability"
As Vulnerability ID insert "TEST/0815-Vuln"
Fill out the remaining form and click "Create"
Get 404-Error
Expected Behavior
Vulnerability IDs should be encoded correctly, so that vulnerabilities can be reached after creation, even if special characters like / exist in the ID.
Current Behavior
If one creates a vulnerability and uses special characters like "/" or "?" in the Vulnerability ID (e.g. TEST/ID), the vulnerability can't be reached afterwards, because the special characters are not properly encoded in the URL.
Steps to Reproduce
Expected Behavior
Vulnerability IDs should be encoded correctly, so that vulnerabilities can be reached after creation, even if special characters like / exist in the ID.
Dependency-Track Version
4.12.1
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
14.7
Browser
Microsoft Edge
Checklist