The install fallback uses a weak hostname substring check before attaching NPM_TOKEN, while requesting a tarball URL supplied by registry metadata. This creates a credible token disclosure vulnerability under crafted metadata, but the normal fallback is for installing the CLI binary, so the finding warrants a warning rather than a malicious verdict.
Static reason
One or more suspicious static signals were detected.
Trigger
Postinstall, when the platform binary is missing from optionalDependencies and NPM_TOKEN is set.
Impact
A crafted tarball hostname such as an attacker-controlled domain containing “npmjs.org” could receive the installer's npm token.
Mechanism
The script reads the tarball URL from the npm packument and passes it to makeRequest, which attaches NPM_TOKEN when the parsed hostname contains “npmjs.org.”
Evidence
package.jsoninstall.jsplatform.jsbin/droidbin/<platform-specific binary>
Network endpoints2
registry.npmjs.orgHost supplied by the tarball URL in npm registry metadata