{"id":"MAL-2026-4517","revision":"f5d0ccaa1cce493da05854de6dd58079","records":[{"revision":"f5d0ccaa1cce493da05854de6dd58079","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4517","aliases":["GHSA-hvjp-xq9w-c33f"],"title":"Malicious code in chalk-tempalte (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d3e82f6fa2867575be5e57fd3b03dada6a93761c97b240f77f98f4b221bde7a7)\nPackage name `chalk-tempalte` is a single-character transposition of the popular `chalk-template` package (a top-tier npm utility), consistent with deliberate typosquatting. The tarball ships a `postinstall.js` lifecycle script that imports `child_process`, performs HTTP GET/POST traffic via `http.request(...)`, and collects host identifiers (`hostname:` fields appear repeatedly throughout the script at lines 20, 46, 287, 409, 427). A second large file, `phantom.js`, contains multiple POST sinks (lines 1807, 2113, 3183, 6795, 6852). The structural shape — typosquat name + postinstall script that combines child_process, outbound HTTP, and host/system metadata harvesting — matches the credential/host-data exfiltration pattern used by recent npm supply-chain campaigns. Installing this package causes the postinstall hook to fire automatically on `npm install`, transmitting installer machine data to a remote endpoint and providing a foothold for further code execution.\n","state":0,"publishedAt":"2026-05-20T02:07:31+00:00","modifiedAt":"2026-09-01T11:31:30.4525758+00:00","affected":[{"ecosystem":"npm","name":"chalk-tempalte","ranges":[],"versions":["1.0.15","1.0.16","1.0.14","1.0.17","1.0.19","1.0.20"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chalk-tempalte/v/1.0.17","https://www.npmjs.com/package/chalk-tempalte/v/1.0.19","https://www.npmjs.com/package/chalk-tempalte/v/1.0.16","https://www.npmjs.com/package/chalk-tempalte/v/1.0.20","https://www.npmjs.com/package/chalk-tempalte/v/1.0.15","https://www.npmjs.com/package/chalk-tempalte/v/1.0.14","https://www.ox.security/blog/new-actors-deploy-shai-hulud-clones-teampcp-copycats-are-here","https://github.com/advisories/GHSA-hvjp-xq9w-c33f"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4517","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4517","identifiers":["MAL-2026-4517","GHSA-hvjp-xq9w-c33f"]},"retained":false,"historicalAffected":[]}],"coverage":[]}