Skip to content

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

Open
sameer6pre wants to merge 1 commit intomainfrom
Precogs-fix-aun6gh2e
Open

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

Conversation

@sameer6pre
Copy link
Owner

Vulnerability Details

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

Explanation:
The code uses dangerouslySetInnerHTML to directly inject HTML content into the DOM. If the cmt.comment value is not properly sanitized, it could allow an attacker to inject malicious scripts, leading to Cross-Site Scripting (XSS) vulnerabilities. This is particularly dangerous as it can compromise user data and application integrity.

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