Skip to main content
MalwarePublished Updated

analytics-widget (npm) · Malicious Code

Affects analytics-widgetSource GCVE Database

0

Malicious package : remove analytics-widget and rotate any secrets on hosts that installed it.

Data as of 30 Sep 2026, 16:37 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17163

What to do

Remove analytics-widget from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmanalytics-widgetAffected
  • =1.0.0
  • =1.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'analytics-widget' versions 1.0.0 and 1.0.1 contains malicious code that exfiltrates user authentication tokens or the entire browser localStorage to an attacker-controlled endpoint. The package masquerades as an analytics tool but performs no legitimate analytics functions. This behavior enables session hijacking of users in applications that include this package.

References

Community reviews

Loading reviews…