Malicious code in @ngp-ui/auth-client (npm)
- MAL-2026-20771
Description
Show the whole descriptionHide the whole 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. 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.
Text from the OSV record.
Affected
@ngp-ui/auth-clientnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.