Logo
npm

analytics-widget@1.0.1

Vulnerability report · Last retrieved from osv.dev September 24, 2026 at 3:58 PM UTC

Malicious

OSV ID

MAL-2026-17163

Ecosystem

npm

Summary

The package is published as 'analytics-widget' with an empty description, but its main module contains no analytics functionality. On load, index.js schedules a 2-second timer that reads the 'token' key from browser localStorage, falls back to a JSON serialization of the entire localStorage store if that key is missing, and POSTs the result to the relative endpoint '/addPost' via fetch. When bundled into a consumer's frontend, every end-user session that loads the page has their auth token (or the full localStorage contents) sent to whichever origin serves the bundle, enabling session hijacking of the consuming application's users. The package name and empty metadata serve as a cover story; no legitimate analytics code is present.

Source: amazon-inspector (4b78f3ed716380da74c5d54de6e24b6b128536a7ce5772e8b05d03108a1d9b74)

Protect your entire dependency tree

Scan your lock files automatically on every PR. Block malicious packages before they reach production.