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

Predicate isUrlWithUntrustedDomain

Holds if url refers to an URL that uses an untrusted domain.

Import path

import semmle.javascript.security.FunctionalityFromUntrustedSource
predicate isUrlWithUntrustedDomain(string url)