Skip to main content
MalwarePublished Updated

use-sync-external-store-shim (npm) · Malicious Code

Affects use-sync-external-store-shimSource GCVE Database

0

Malicious package : remove use-sync-external-store-shim and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 07:47 UTC

Classification

Malicious package

Published to npm · OSV MAL-2024-3805

What to do

Remove use-sync-external-store-shim 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
npmuse-sync-external-store-shimpkg:npm/use-sync-external-store-shimOther threatsAffected
  • =1.0.1
  • =1.0.0
  • =2.0.0
Fixed in–

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

Description

The 'use-sync-external-store-shim' npm package is a malicious typosquatting package impersonating the legitimate React shim 'use-sync-external-store'. It contains a postinstall script that automatically exfiltrates the installer's hostname and current working directory to an attacker-controlled webhook during npm install without user interaction. This behavior represents a supply-chain reconnaissance stage aimed at gathering environment information from victims.

References

Community reviews

Loading reviews…