@ngp-ui/context-providers (npm) · Malicious Code
Affects @ngp-ui/context-providersSource GCVE Database
Malicious package : remove @ngp-ui/context-providers and rotate any secrets on hosts that installed it.
Data as of 3 Dec 2026, 08:16 UTC
Malicious package
Published to npm · OSV MAL-2026-20772
What to do
Remove @ngp-ui/context-providers from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@ngp-ui/context-providers | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
@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. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8148455101f8d6b16e78af291bb4bdc852f6f82574e840dd97aa4a6473419235) 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.