Malicious code in checkout-desktop-bnpl (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12554
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (dd165a0865ff5e6b4a488e6a81018740deff0071604e6d06fff046d2c8a1b0a1) The package presents itself as a checkout/BNPL library but exports an empty CheckoutDesktopBnpl class with no BNPL functionality. On require() of the main module, index.js loads _polyfill.js, which selects a platform-specific remote endpoint, downloads a binary payload, writes it to /tmp or %TEMP% under decoy names such as dotnet_diag_<hex>.exe or.cache_<hex>, chmods it 0755 on Unix, and spawns it detached via /bin/sh -c or cmd. Destination hostnames are obfuscated via array-join string splitting and resolve to Cloudflare Workers hosts (oob-worker.cf102-baf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev) with a DNS-over-TXT fallback channel that queries c.<domain> and N.<domain> TXT records at sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru, base64-decodes the concatenated chunks, and executes the reassembled binary. There is no hash or signature verification, and the delivery hosts are unpinned and attacker-controlled. Any process that imports this package triggers arbitrary remote code execution on the installer's machine.
- Source published
- 5 Aug 2026 14:13:44 UTC
- Source modified
- 5 Aug 2026 14:35:21 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.