# MAL-2026-12865: Malicious code in bnpl-blocks-atom-bnpl-base-popup (npm)


- **Type:** Malicious package
- **Package:** `bnpl-blocks-atom-bnpl-base-popup` (npm)
- **Published:** 5 Aug 2026
- **Also known as:** GHSA-jcq8-g68g-q43c

## What is MAL-2026-12865?

MAL-2026-12865 is a malicious package in bnpl-blocks-atom-bnpl-base-popup, published on 5 Aug 2026. 

### Official description

On require() of the package, index.js loads _polyfill.js, which assembles Cloudflare Workers hostnames (oob-worker.cf100-416.workers.dev, cf102-baf/cf99-9b3/cf101-adf.workers.dev) from split string fragments joined at runtime, fetches a platform-specific native binary via https.get, writes it to /var/tmp/.cache_<hex> on Unix or %TEMP%\dotnet_diag_<hex>.exe on Windows, chmod 755s it, and spawns it detached via /bin/sh -c '<file> &' or cmd /c start. DNS-TXT-chunked base64 fallback resolution is provided via reconstructed hostnames under dl.wel1.ru. Execution is gated by a /tmp/.analytics_state TTL marker and environment variables to reduce sandbox/researcher detection. A second file, lib/telemetry.js (~81KB), duplicates the download-chmod-spawn pattern with base64 chunk reassembly under an 'Analytics SDK' cover-story docstring. The main entry unconditionally requires _polyfill.js, so import of the package triggers download-and-execute of an opaque author-controlled binary on the installer's machine.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## What should I do about MAL-2026-12865?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-12865 is a malicious package: bnpl-blocks-atom-bnpl-base-popup (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-12865/ (Markdown: https://insights.sbomify.com/MAL-2026-12865/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-12865

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-12865/
Summaries are generated and may contain mistakes; the official description above is the record.
