Skip to main content

Malicious code in hs-locale-management (npm)

0
High
Published: 06/24/2026 (06/24/2026, 14:01:16 UTC)
Source: GCVE Database
Product: hs-locale-management

Description

The hs-locale-management package on npm was found to contain malicious code published as a dependency-confusion proof-of-concept under version 99.99.99 and related tags. The package's postinstall script collects local host fingerprint data and prints it to the console without exfiltrating data or modifying files outside its own directory. While the current version's impact is limited to harmless console output, the package's naming and versioning pose a supply-chain risk because it could be used to deliver arbitrary code in future versions if mistakenly resolved by HubSpot's internal build pipelines or third parties. There is no confirmed patch or remediation available at this time. The package should be removed if installed, and secrets rotated as a precaution due to the potential for full system compromise.

Affected software

npmghsa
hs-locale-management
Affected versions
=99.99.99-poc2=99.99.99-poc3=99.99.99

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 10:53:14 UTC

Technical Analysis

This threat involves a malicious npm package named hs-locale-management, published under a high version number (99.99.99 and variants) to outrank legitimate internal packages in HubSpot's namespace. The package's postinstall.js script collects local system fingerprinting information (hostname, username, platform, node version, process ID) and outputs it to stdout. It does not currently exfiltrate data over the network, drop additional payloads, or modify the installer's filesystem beyond its own directory. The main concern is structural: the package's naming and versioning could be exploited in supply-chain attacks if future versions include more harmful code. The current version's impact is limited and does not meet criteria for blocking, but the package represents namespace abuse and should be subject to takedown or reservation actions. Vendor advisories or patches are not indicated, and the package is not a cloud service. The GHSA advisory warns that any system with this package installed should be considered fully compromised and recommends immediate secret/key rotation and package removal.

Potential Impact

The immediate impact of the current package versions is limited to local fingerprint data collection and console output during installation, with no network exfiltration or filesystem modifications outside the package directory. However, the structural risk is significant: the package's high version number and namespace squatting could allow attackers to deliver arbitrary malicious code in future versions, potentially leading to full system compromise. The GHSA advisory treats any system with this package installed as fully compromised, recommending secret rotation and removal. No known exploits in the wild are reported at this time.

Mitigation Recommendations

No official patch or remediation is currently available. Users and organizations should remove any installed versions of hs-locale-management (versions =99.99.99, =99.99.99-poc2, =99.99.99-poc3) immediately. Rotate all secrets and keys from a separate, trusted system to mitigate potential compromise. Monitor for any future advisories or takedown actions related to this package. Registry maintainers and HubSpot should consider namespace reservation or takedown to prevent reuse of this high-version package name. Since this is not a cloud service, remediation depends on user action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6394
Osv Schema Version
1.7.4
Aliases
["GHSA-rv32-4gr2-5g7w"]
Ecosystems
["npm"]

Threat ID: 6a96f318acd9273b49e495e3

Added to database: 09/01/2026, 15:45:28 UTC

Last enriched: 09/08/2026, 10:53:14 UTC

Last updated: 10/01/2026, 22:42:32 UTC

Views: 26

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses