To fix the problem, we need to sanitize the path property before using it in the Link component. This can be done by using a library like escape-html to ensure that any potentially malicious content is properly escaped.
Install the escape-html library.
Import the escape-html library in the components/MemberCard/MemberCard.tsx file.
Use the escape-html function to sanitize the path property before using it in the Link component.
Suggested fixes powered by Copilot Autofix. Review carefully before merging.
Fixes https://github.com/Latina-Dev/latina-dev/security/code-scanning/9
To fix the problem, we need to sanitize the
path
property before using it in theLink
component. This can be done by using a library likeescape-html
to ensure that any potentially malicious content is properly escaped.escape-html
library.escape-html
library in thecomponents/MemberCard/MemberCard.tsx
file.escape-html
function to sanitize thepath
property before using it in theLink
component.Suggested fixes powered by Copilot Autofix. Review carefully before merging.