Malicious code in @ngp-ui/api-client (npm)
- MAL-2026-20770
Description
Show the whole descriptionHide the whole description
@ngp-ui/api-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.api-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/api-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 that reads the installing machine's hostname via `os.hostname()` and embeds it as a subdomain label in a DNS resolution request against `*.ngp-ui.api-client.oob.jr0ch17.com`, an out-of-band callback domain operated by a third party. This fires automatically on `npm install` with no user action and transmits a host identifier off the installer's machine over DNS, a channel that bypasses typical HTTP egress controls. Aside from the beacon, the package ships an empty module export and provides no functional API. It is published under the `@ngp-ui` scope at version 99.0.0 with a description identifying it as a dependency-confusion proof of concept; the implausibly high version is consistent with an attempt to win resolution against an internal package of the same name, so installers that resolve this package receive a non-functional stub plus the install-time beacon.
Text from the OSV record.
Affected
@ngp-ui/api-clientnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.