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

Predicate isUntrustedHostname

Holds if hostname refers to a domain or subdomain that is untrusted.

Import path

import semmle.javascript.security.FunctionalityFromUntrustedSource
predicate isUntrustedHostname(string hostname)