Malicious code in use-sync-external-store-shim (npm)
MAL-2024-3805 · GHSA-hq84-gx96-2xmq · SNYK-JS-USESYNCEXTERNALSTORESHIM-3336025
Published · Modified
Dependency scanning
Check whether use-sync-external-store-shim is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
The name use-sync-external-store-shim imitates use-sync-external-store/shim, the shim entry point of React's use-sync-external-store package; the npm account djdhhdjdjf7777 registered the name again on 2026-11-24, after its 2023 versions had been removed, and published 2.0.0 and 2.2.0, which have no functional code. Each has a postinstall script that runs node index.js on npm install, which POSTs a JSON beacon (event: "authorized-poc-test", a random test id, status: "executed") to https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 (2.0.0) or https://webhook.site/b4ea4473-01d9-4763-9e39-3b02063219d5 (2.2.0), telling the collector the package was installed and from which network. The same account published the same beacon as bundle-entry-points, paystation-embed-app and global-error-handling.
__
Source: amazon-inspector (f580338454159b608f80b985909f20a4e4fafa8b3f4eba644c5ea82e4e5c1d29)
Package name impersonates the legitimate use-sync-external-store React shim while its package.json description ('A utility for managing SVG buckets') is unrelated to that purpose. package.json declares a postinstall hook running node index.js, which reads os.hostname() and process.cwd() and POSTs them as JSON to a hardcoded webhook at https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50. The exfiltration fires automatically during npm install without any user interaction and sends installer host identifiers to an attacker-controlled collector. The shape — misleading name, mismatched description, install-time beacon to an anonymous webhook endpoint — is the recon/confirmation stage of a typosquat supply-chain attack.
Source: ghsa-malware (bbf8eddfb25e34173f80277f028c2d8f04a56b49ff531972ddd50d9093a5c236)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Ready to move
Start Securing
Free, no credit card | First findings in minutes