Skip to main content

Malicious code in @lodash-js/lodash-js (npm)

0
High
Published: 08/14/2026 (08/14/2026, 20:02:21 UTC)
Source: GCVE Database
Product: @lodash-js/lodash-js

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (03e8f6925f88772bdb738b691a200f670aebecaef33c066a379d9424c7910a5a) The package is published under a name mimicking lodash but its manifest's main entry is dist/xelis-miner.browser.js, a Xelis Stratum cryptocurrency miner bundle with an embedded ~35 KB WebAssembly xelis-hash v3 engine. On require/import (or via the README-advertised CDN embed), the bundle auto-instantiates a XelisMiner web worker (XelisMiner.auto) that mines on the visitor's CPU. Pool and wallet configuration are not fixed in the bundle; the miner fetches them at runtime from a hardcoded author-controlled Cloudflare Workers endpoint at https://analytics.baskirill-an.workers.dev/configs/boostydownloader (referred to in the README as "cloudflare-c2c"), which lets the operator rotate mining pool and wallet destinations at will. The bundle additionally contacts https://api.ipify.org?format=json to capture the visitor's public IP. Package metadata (description "lodash-js", keywords including xelis/stratum/miner/wasm) contradicts the lodash-shaped name — the sole shipped functionality is the miner, not any lodash API. Any site or application that installs this package believing it to be lodash will ship a browser cryptojacker to its end users, whose compute and electricity are redirected to the attacker's mining pool via the mutable c2 endpoint.

Affected software

npmghsa
@lodash-js/lodash-js
Affected versions
=0.1.0=0.2.0=0.3.0

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: 08/15/2026, 05:43:02 UTC

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.

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.

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-14048
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a7ff5f4bf8831d53987f5e7

Added to database: 08/15/2026, 05:15:32 UTC

Last enriched: 08/15/2026, 05:43:02 UTC

Last updated: 09/28/2026, 10:55:07 UTC

Views: 65

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