@ngp-ui/auth-client (npm) · Malicious Code
Affects @ngp-ui/auth-clientSource GCVE Database
Malicious package : remove @ngp-ui/auth-client 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-20771
What to do
Remove @ngp-ui/auth-client 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/auth-client | 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/auth-client@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.auth-client.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/auth-client 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 (2c6966d6130cdd57448de3bc7e0aeba46d85348748bda156d6f4a0966a6a3367) The package declares a `preinstall` lifecycle script (`node preinstall.js`) that reads the installing machine's hostname via `os.hostname()` and embeds it as a subdomain label in a DNS resolution against `oob.jr0ch17.com` (queried as `<hostname>.ngp-ui.auth-client.oob.jr0ch17.com`). The lookup fires automatically on every `npm install`, transmitting the installer's host identifier out-of-band to the domain owner's authoritative name server with no consent or opt-out, and simultaneously confirming to that third party that the internal package name `@ngp-ui/auth-client` is being resolved from the public registry. The manifest self-describes as a 'Security research - dependency confusion proof of concept' and carries an inflated version `99.0.0` under a scoped organization name, a version choice that wins resolution against lower-numbered internal releases of the same name. The shipped module exports no functionality, so a build that resolves to this package loses the intended internal implementation while still executing the beacon.