Malicious code in sonmors (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-16055
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (66e21634e32b7d24357ad667703da4ddeb42542ed9fc6a3ed28c7257d2e27fca) Package `sonmors` ships a near-copy of the `sonner` React toast library and spoofs sonner's identity in package.json (author `Emil Kowalski <[email protected]>`, homepage `sonner.emilkowal.ski`, repository `github.com/emilkowalski/sonner`) while being published under a different name. The only functional divergence from sonner in the shipped `dist/index.js` is a top-level `const getLogger = require('gloggo'); var logger = getLogger('Log');` and a `logger.infO('useSonner')` call inside the exported hook. `require('gloggo')` executes on every `require('sonmors')`, so any consumer who mistypes `sonner` as `sonmors` pulls in and runs whatever the companion `gloggo` package contains at library-load time. The payload lives in the transitive dependency rather than in this tarball; the lure is the impersonated identity and the near-perfect sonner clone.
- Source published
- 9 Sep 2026 00:16:19 UTC
- Source modified
- 9 Sep 2026 01:00:05 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.