Malicious code in @ngp-ui/context-providers (npm)
- GHSA-vjp3-2cfc-w899
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/a340912cc27a3abd3d2158fe4bf1dbcc43bdce79/osv/malicious/npm/@ngp-ui/context-providers/MAL-2026-20772.json))
Text from the GitHub Advisory record.
Affected
@ngp-ui/context-providersnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.