CodeQL library for JavaScript
codeql/javascript-all 0.6.1 ( changelog , source )

Predicate XssThroughDom :: unsafeAttributeName

Gets an attribute name that could store user-controlled data.

Attributes such as “id”, “href”, and “src” are often used as input to HTML. However, they are either rarely controlable by a user, or already a sink for other XSS vulnerabilities. Such attributes are therefore ignored.

Import path

string unsafeAttributeName ( )