Skip to content

Draft: Embed Semgrep Community Rule Tainted HTML

Dinura Seneviratne requested to merge feat/441052/Tainited-HTML into main

What does this MR do?

This change introduces a new rule to detect potential cross-site scripting (XSS) vulnerabilities in Java code. The rule checks for instances where user input is directly concatenated into HTML strings, which could allow attackers to inject malicious code into web pages. The rule provides guidance on how to safely render HTML to prevent XSS vulnerabilities. Additionally it provides examples of both unsafe and safe code.

What are the relevant issue numbers?

Category:SAST SASTRuleset backend

Merge request reports