Malicious code in @ngp-ui/api-client (npm)
- GHSA-3m8m-wj7p-9r57
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/a340912cc27a3abd3d2158fe4bf1dbcc43bdce79/osv/malicious/npm/@ngp-ui/api-client/MAL-2026-20770.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@ngp-ui/api-clientnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.