Skip to content

Commit 73b0aa4

Browse files
committed
add more attributes potentially vulnerable to xss-through-dom
1 parent 12f4ce8 commit 73b0aa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/XssThroughDom.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ module XssThroughDom {
4444
bindingset[result]
4545
string unsafeAttributeName() {
4646
result.regexpMatch("data-.*") or
47-
result = ["name", "value"]
47+
result.regexpMatch("aria-.*") or
48+
result = ["name", "value", "title", "alt"]
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)