CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.0.1-dev (changelog, source)
Search

Predicate DomBasedXss::isPrefixOfJQueryHtmlString

Holds if prefix is a prefix of htmlString, which may be interpreted as HTML by a jQuery method.

Import path

import semmle.javascript.security.dataflow.DomBasedXssCustomizations
predicate isPrefixOfJQueryHtmlString(Node htmlString, Node prefix)