We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb980e2 commit 9a5c0f6Copy full SHA for 9a5c0f6
java/ql/src/semmle/code/java/security/XSS.qll
@@ -94,6 +94,9 @@ private class DefaultXssSink extends XssSink {
94
private class DefaultXSSSanitizer extends XssSanitizer {
95
DefaultXSSSanitizer() {
96
this.getType() instanceof NumericType or this.getType() instanceof BooleanType
97
+ or
98
+ // Match `org.springframework.web.util.HtmlUtils.htmlEscape` and possibly other methods like it.
99
+ this.asExpr().(MethodAccess).getMethod().getName().regexpMatch("(?i)html_?escape.*")
100
}
101
102
0 commit comments