The package’s native binary setup is consistent with its purpose, but its automatic fallback can send NPM_TOKEN to an unchecked metadata or redirect destination. This is a credential destination validation vulnerability, so it warrants a warning.
Static reason
One or more suspicious static signals were detected.
Trigger
The postinstall fallback runs when the platform-specific optional dependency is unavailable, and NPM_TOKEN is set.
Impact
A crafted destination whose hostname contains npmjs.org can receive the npm token.
Mechanism
install.js fetches package metadata from registry.npmjs.org, uses its dist.tarball URL without checking that it belongs to the registry, and attaches NPM_TOKEN to any request whose hostname contains npmjs.org. Redirect destinations are followed and checked the same way.
Evidence
package.jsoninstall.jsbin/droidbin/${binaryName}
Network endpoints2
registry.npmjs.orgtarball URL supplied by npm metadata or a redirect