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

Predicate matchesDangerousPrefix

Holds if t may match the dangerous prefix and some suffix, indicating intent to prevent a vulnerability of kind kind.

Import path

import semmle.javascript.security.IncompleteMultiCharacterSanitizationQuery
predicate matchesDangerousPrefix(EmptyReplaceRegExpTerm t, string prefix, string kind)