Malicious code in stretchshop (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13460
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (479c1238e6380db5463eb3755b980f963d269b2b0874d464b9e1b3b65bd03f60) package.json declares a postinstall hook that runs `node demo/demo.js base`, which shell-invokes `git clone https://github.com/Wradgio/StretchShop-demo-data.git` at mutable HEAD (no commit SHA, no tag, no integrity check) and then `childProcess.fork`s `db/demo_data.js` from the freshly cloned tree. The cloned repository is owned by the personal GitHub account `Wradgio`, which does not match the package's publisher scope `StretchShop`. Whoever controls that GitHub account can push arbitrary JavaScript to the default branch and have it executed on every fresh top-level install of [email protected].
- Source published
- 6 Aug 2026 15:34:27 UTC
- Source modified
- 6 Aug 2026 23:50:22 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.