Skip to content

Commit 89dfdc0

Browse files
authored
Update the description message of template rule (#803)
1 parent 0791d31 commit 89dfdc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/templates.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NewTemplateCheck(id string, conf gosec.Config) (gosec.Rule, []ast.Node) {
5454
ID: id,
5555
Severity: gosec.Medium,
5656
Confidence: gosec.Low,
57-
What: "this method will not auto-escape HTML. Verify data is well formed.",
57+
What: "The used method does not auto-escape HTML. This can potentially lead to 'Cross-site Scripting' vulnerabilities, in case the attacker controls the input.",
5858
},
5959
}, []ast.Node{(*ast.CallExpr)(nil)}
6060
}

0 commit comments

Comments
 (0)