{"id":"MAL-2026-20772","summary":"Malicious code in @ngp-ui/context-providers (npm)","details":"@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 `\u003chostname\u003e.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.","modified":"2026-11-30T03:45:05.433747725Z","published":"2026-11-27T04:02:56Z","database_specific":{"iocs":{"domains":["jr0ch17.com","oob.jr0ch17.com"],"files":[{"digests":{"sha256":"1c5bc061a8ccc2c5e239867c12c09c2013ece4a5bcdaf0c6b33a39a23804aa4f"},"note":"preinstall.js of @ngp-ui/context-providers@99.0.0; resolves \u003chostname\u003e.ngp-ui.context-providers.oob.jr0ch17.com.","paths":["preinstall.js"],"source":"PACKAGE_ARCHIVE"},{"note":"preinstall runs `node preinstall.js`, which sends the hostname over DNS to ngp-ui.context-providers.oob.jr0ch17.com.","paths":["package.json"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"5a9892d43292947e96fd645f911269878e31b1ddf497bba404993a594abfb6ea"}},{"digests":{"sha256":"1c5bc061a8ccc2c5e239867c12c09c2013ece4a5bcdaf0c6b33a39a23804aa4f"},"note":"Executed by the preinstall script of @ngp-ui/context-providers@99.0.0.","paths":["preinstall.js"],"source":"PACKAGE_ARCHIVE"}]}},"affected":[{"package":{"name":"@ngp-ui/context-providers","ecosystem":"npm","purl":"pkg:npm/%40ngp-ui/context-providers"},"versions":["99.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ngp-ui/context-providers/MAL-2026-20772.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.2","credits":[{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}