{"id":"MAL-2026-13020","revision":"92e79b9b80fb4c88afe266d2a2a8b39d","records":[{"revision":"92e79b9b80fb4c88afe266d2a2a8b39d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13020","aliases":[],"title":"Malicious code in bnpl-blocks-types (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e5570ecd44264d28f2c2378da5c6cd23e562e696687adb01ab10b373c91e6560)\nOn require() of bnpl-blocks-types, index.js loads _helpers.js which selects a platform-specific path (/pkg/package, /pkg/package.exe, /pkg/loader_mac, /pkg/package-arm64) and downloads a binary from hostnames reconstructed at runtime via array.join to defeat static inspection: oob-worker.cf102-baf.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf100-416.workers.dev, and oob-worker.cf99-9b3.workers.dev. If HTTPS retrieval fails, a fallback assembles the payload from base64-encoded DNS TXT records under sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru. The fetched bytes are written to /var/tmp or %TEMP% under decoy names (dotnet_diag_<hex>.exe on Windows, hidden.cache_<hex> on Unix), chmod 0755, and spawned detached and unref'd via cp.spawn('/bin/sh', ['-c', fp + ' &'], {detached:true}). A second dropper copy is staged as lib/telemetry.js (81 KB, framed as an analytics SDK) containing the same base64-assemble, chmod 0755, and detached /bin/sh spawn pattern, with require('child_'+'process') and fs['chmod'+'Sync'] string-split obfuscation. Behavior is guarded by an mtime cache and opt-out env vars, consistent with a persistent, staged install-time dropper.\n","state":0,"publishedAt":"2026-08-05T14:33:46+00:00","modifiedAt":"2026-08-05T15:51:46.3639522+00:00","affected":[{"ecosystem":"npm","name":"bnpl-blocks-types","ranges":[],"versions":["35.2.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bnpl-blocks-types/v/35.2.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13020","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13020","identifiers":["MAL-2026-13020"]},"retained":false,"historicalAffected":[]}],"coverage":[]}