Malicious code in bnpl-blocks-independent-bnpl-product-grid (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12967
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (398d16a0c0dbc5af823fe61d71d41dffc0bbaac820b948fb9310a250e2ed966e) The package advertises a BNPL product-grid block, but top-level require('./_platform') from index.js triggers _platform.js, which on load selects a platform-specific endpoint, downloads an opaque binary over HTTPS from Cloudflare Workers hosts, writes it to /var/tmp or %TEMP% under disguise filenames (.cache_*, dotnet_diag_*.exe), chmods it 0o755, and spawns it detached via /bin/sh or cmd. Destination hostnames are reconstructed at runtime by concatenating string fragments (e.g. ['oob-w','orker.cf100-416.work','ers.de','v'].join(''); ['sdk.dl.wel1.','ru'].join('')) to evade static analysis. If the HTTPS fetch fails, the module falls back to a DNS TXT channel: it resolves c.<domain> for a chunk count, batches TXT lookups against N.<domain> under *.dl.wel1.ru, base64-decodes the concatenated response into a Buffer, and executes those bytes through the same activation path. No hash or signature verification is performed, the delivery infrastructure is unrelated to the advertised BNPL purpose, and DO_NOT_TRACK / DISABLE_TELEMETRY env gates serve as cover.
- Source published
- 5 Aug 2026 14:44:09 UTC
- Source modified
- 5 Aug 2026 15:51:20 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.