Malicious code in @lodash-js/lodash-js (npm)
The npm package @lodash-js/lodash-js is a malicious package impersonating the popular lodash library. Instead of providing lodash functionality, it contains a cryptocurrency miner that runs in the browser, using visitors' CPU resources to mine Xelis cryptocurrency. The miner fetches its mining pool and wallet configuration dynamically from a cloud-hosted endpoint controlled by the attacker, allowing flexible redirection of mining rewards. It also collects the visitor's public IP address. Any project that installs this package expecting lodash will inadvertently deploy a cryptojacking script to end users.
AI Analysis
Technical Summary
The @lodash-js/lodash-js npm package is a malicious package masquerading as the legitimate lodash library. Its main entry point is a JavaScript bundle that auto-instantiates a Xelis cryptocurrency miner web worker in the browser. The miner's configuration, including mining pool and wallet addresses, is dynamically fetched at runtime from an attacker-controlled Cloudflare Workers endpoint, enabling the attacker to rotate destinations. Additionally, the package collects the visitor's public IP address via an external API. The package metadata misleadingly references lodash but actually only delivers the miner functionality. Installing this package results in browser-based cryptojacking on end users.
Potential Impact
Users or applications that install @lodash-js/lodash-js expecting lodash will unknowingly deploy a browser cryptojacker to their end users. This causes unauthorized use of visitors' CPU resources and electricity to mine cryptocurrency for the attacker. The dynamic configuration endpoint allows the attacker to control mining destinations and potentially evade detection. The package also collects visitor IP addresses, which may have privacy implications. There is no indication of direct code execution or data theft beyond cryptojacking and IP collection.
Mitigation Recommendations
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing or using @lodash-js/lodash-js, especially since it is a known malicious impersonation of lodash. Users should verify package names carefully and prefer official lodash packages from trusted sources. If this package is found in any project, it should be removed immediately and replaced with the legitimate lodash package. Monitor dependencies for similarly named or suspicious packages to prevent supply chain compromise.
Malicious code in @lodash-js/lodash-js (npm)
Description
The npm package @lodash-js/lodash-js is a malicious package impersonating the popular lodash library. Instead of providing lodash functionality, it contains a cryptocurrency miner that runs in the browser, using visitors' CPU resources to mine Xelis cryptocurrency. The miner fetches its mining pool and wallet configuration dynamically from a cloud-hosted endpoint controlled by the attacker, allowing flexible redirection of mining rewards. It also collects the visitor's public IP address. Any project that installs this package expecting lodash will inadvertently deploy a cryptojacking script to end users.
Affected software
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
Technical Analysis
The @lodash-js/lodash-js npm package is a malicious package masquerading as the legitimate lodash library. Its main entry point is a JavaScript bundle that auto-instantiates a Xelis cryptocurrency miner web worker in the browser. The miner's configuration, including mining pool and wallet addresses, is dynamically fetched at runtime from an attacker-controlled Cloudflare Workers endpoint, enabling the attacker to rotate destinations. Additionally, the package collects the visitor's public IP address via an external API. The package metadata misleadingly references lodash but actually only delivers the miner functionality. Installing this package results in browser-based cryptojacking on end users.
Potential Impact
Users or applications that install @lodash-js/lodash-js expecting lodash will unknowingly deploy a browser cryptojacker to their end users. This causes unauthorized use of visitors' CPU resources and electricity to mine cryptocurrency for the attacker. The dynamic configuration endpoint allows the attacker to control mining destinations and potentially evade detection. The package also collects visitor IP addresses, which may have privacy implications. There is no indication of direct code execution or data theft beyond cryptojacking and IP collection.
Defensive Guidance
No official patch or remediation is available for this malicious package. The best mitigation is to avoid installing or using @lodash-js/lodash-js, especially since it is a known malicious impersonation of lodash. Users should verify package names carefully and prefer official lodash packages from trusted sources. If this package is found in any project, it should be removed immediately and replaced with the legitimate lodash package. Monitor dependencies for similarly named or suspicious packages to prevent supply chain compromise.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14048
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7ff5f4bf8831d53987f5e7
Added to database: 08/15/2026, 05:15:32 UTC
Last enriched: 08/15/2026, 05:43:02 UTC
Last updated: 08/15/2026, 05:43:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.