The installer’s fallback can send NPM_TOKEN to a hostname that only contains the text "npmjs.org", and it trusts registry-provided tarball URLs and redirects. This is a conditional credential-routing vulnerability, but the reviewed source does not establish an active attacker-controlled destination.
Static reason
One or more suspicious static signals were detected.
Trigger
The postinstall fallback runs when the platform optional dependency is missing, and NPM_TOKEN is set.
Impact
An attacker able to influence that URL or redirect could receive the user's npm token.
Mechanism
The installer obtains a tarball URL from the npm packument, follows redirects, and attaches NPM_TOKEN based on a substring match rather than validating the destination host.
Evidence
package.jsoninstall.jsbin/droidbin/<binaryName>
Network endpoints2
registry.npmjs.orgredirect and tarball destinations supplied at runtime