Skip to main content
MalwarePublished

@latlongid/location (npm) · Malicious Code

Affects @latlongid/locationSource GCVE Database

0

Malicious package : remove @latlongid/location and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 16:57 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12506

What to do

Remove @latlongid/location 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
npm@latlongid/locationAffected
  • =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 @latlongid/location version 1.0.1 contains malicious code that executes automatically upon installation. The postinstall script runs a JavaScript file that encodes the installer's hostname and sends it as part of a DNS query to an external domain, effectively exfiltrating host identification data. This behavior is consistent with reconnaissance activity aimed at identifying internal build environments, potentially for dependency confusion attacks.

References

Community reviews

Loading reviews…