Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code scanning alert no. 9: Stored cross-site scripting #188

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FrancesCoronel
Copy link
Member

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 the Link component. This can be done by using a library like escape-html to ensure that any potentially malicious content is properly escaped.

  1. Install the escape-html library.
  2. Import the escape-html library in the components/MemberCard/MemberCard.tsx file.
  3. 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.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Frances Coronel <[email protected]>
Copy link

vercel bot commented Dec 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
latina-dev ❌ Failed (Inspect) Dec 1, 2024 6:11pm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • package.json: Language not supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant