Malicious package · npm
Malicious code in @ngp-ui/context-providers (npm)
99.0.0No safe version. Remove it.What it does
@ngp-ui/context-providers@99.0.0 is a dependency-confusion package with no functional code: it takes a name in the @ngp-ui scope at version 99.0.0, high enough to outrank a same-named package on a private registry. Its preinstall script runs node preinstall.js on npm install, which reads the machine's hostname and resolves <hostname>.ngp-ui.context-providers.oob.jr0ch17[.]com, sending the hostname of every installing machine to a DNS server controlled by the publisher. The npm account jr0ch17-bb published @ngp-ui/context-providers and 2 sibling @ngp-ui packages with the same script within a minute on 2026-11-27.
The package declares a preinstall lifecycle hook that executes automatically on npm install. The script reads the installing machine's hostname via os.hostname(), embeds it as a subdomain label under ngp-ui.context-providers.oob.jr0ch17.com, and triggers a DNS resolution for that name, delivering the host identifier to the nameserver operating that domain. The package ships no functional implementation — the shipped module is an empty stub, and the only effect of installing it is the out-of-band callback. The version number (99.0.0) and the scoped name are consistent with a dependency-confusion resolution-winning pattern targeting an internal package of the same name, and the code self-describes as a proof of concept. The data leaving the host is limited to a host identifier; no credentials, environment variables, or file contents are read, and no remote code is fetched or executed.
No fix · Remove and contain
npm uninstall @ngp-ui/context-providersSources