Skip to content

[Precogs Alert] Cross-Site Scripting (XSS) detected (CWE-79, Risk: High)#9

Open
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-8fhicb50
Open

[Precogs Alert] Cross-Site Scripting (XSS) detected (CWE-79, Risk: High)#9
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-8fhicb50

Conversation

@sameer6pre
Copy link
Owner

Vulnerability Details

  • File Path: cloned_repos/orbit-app/orbit-app/src/components/CommentsSection.jsx
  • Vulnerability Type: Cross-Site Scripting (XSS)
  • Risk Level: High

Explanation:
The code uses the 'dangerouslySetInnerHTML' property in React to render HTML content from user input. While the input is sanitized using 'sanitizeHTML', the use of 'dangerouslySetInnerHTML' is inherently risky as it can lead to Cross-Site Scripting (XSS) vulnerabilities if the sanitization function is not robust or fails to handle certain edge cases.

Please review and address the issue accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant