Links in Security Reports & License Management are vulnerable to XSS attacks
At the moment we are using JSON artifacts to render security reports (SAST, DAST, Container Scanning, Dependency Scanning) and License Management Reports in the Frontend. Those reports contain fields that are rendered as links (
<a>) and link attribute (
href) is filled with unsanitized URLs and therefore prone to XSS attacks. See reports here:
This issue is to provide a SSOT discussion for the problem solution.
Relevant code links:
I would create a
<safe-link/> Vue Component, which just allows
https links. If the
href attribute is safe, it will render the link as a
<a>. If it is unsafe, it will just render the links text as a
Future UX improvements could be a tooltip or something similar to explain to the user why the link.