The postinstall script forwards GitHub credentials across unchecked redirect hosts, which could expose a token if a redirect points outside GitHub. The download and checksum verification fit the package's stated purpose, so this is a warning-level credential handling vulnerability.
Static reason
One or more suspicious static signals were detected.
Trigger
Package installation when MCPTASK_GITHUB_TOKEN or GITHUB_TOKEN is set and the release server responds with a redirect.
Impact
A redirect to an untrusted host could disclose the user's GitHub token.
Mechanism
The downloader reuses its Authorization header when recursively requesting the redirect URL, without validating that URL's host.
Evidence
package.jsoninstall.jsvendor/${BINARY}OS temporary directory (mcptask-* staging directory)
Network endpoints2
github.com/${REPO}/releases/download/${version}Redirect URL from res.headers.location (host unchecked)