{"id":"MAL-2026-13021","revision":"1e4d3693429c406fb9a219800408c7ea","records":[{"revision":"1e4d3693429c406fb9a219800408c7ea","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13021","aliases":[],"title":"Malicious code in bnpl-blocks-types-gen (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (de78304bd1becbc9d7c967d281a308b18da039554be722990596f528180454f5)\nOn require('bnpl-blocks-types-gen'), top-level code in index.js invokes setup() in _platform.js, which selects a platform-specific binary path, downloads bytes from one of three Cloudflare Workers hosts whose names are assembled from split string literals (oob-worker.cf102-baf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf103-070.workers.dev), writes them to /var/tmp/.cache_<rand> or %TEMP%\\dotnet_diag_<rand>.exe, chmods 0755, and spawns the binary detached via /bin/sh -c or cmd /c start. If the HTTPS fetch fails, a DNS TXT-record fallback under sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru reconstructs a base64-chunked payload from TXT records and executes it the same way. Hostnames and the require('child_process') call are obfuscated via Array.join() from split literals to evade static analysis. Delivery is unpinned and unverified, the disguised filenames masquerade as OS cache/diagnostic files, and the fetched content bears no relation to the package's stated 'lightweight wrapper' purpose.\n","state":0,"publishedAt":"2026-08-05T14:33:28+00:00","modifiedAt":"2026-08-05T15:51:45.2335995+00:00","affected":[{"ecosystem":"npm","name":"bnpl-blocks-types-gen","ranges":[],"versions":["35.4.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bnpl-blocks-types-gen/v/35.4.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13021","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13021","identifiers":["MAL-2026-13021"]},"retained":false,"historicalAffected":[]}],"coverage":[]}