Source: https://github.com/github/codeql/blob/main/javascript/ql/src/Security/CWE-829/InsecureDownload.ql