# MAL-2026-16330: Malicious code in commerce-materials (npm)


- **Type:** Malicious package
- **Package:** `commerce-materials` (npm)
- **Published:** 21 Sep 2026

## What is MAL-2026-16330?

MAL-2026-16330 is a malicious package in commerce-materials, published on 21 Sep 2026. 

### Official description

commerce-materials@1.0.0 declares preinstall and postinstall lifecycle scripts that run callback.js on every npm install. callback.js collects hostname, username, platform, cwd, home directory, CI/cloud provider fingerprints, network interface addresses, and a filtered list of process.env variable names matching credential-shaped patterns (token, secret, key, password, aws, azure, gcp, npm, ssh, jwt). It also probes the current working directory for the presence of.env,.env.local,.env.production,.npmrc,.yarnrc, package-lock.json, yarn.lock,.git/config,.docker/config.json, credentials, and secrets.json. The assembled report is POSTed to api.telegram.org using a hardcoded bot token (8636277735) and chat_id (1064260758). A secondary DNS-based exfiltration channel base64-encodes host, user, and CI fields into a subdomain of dc-callback.example.com and issues dns.resolve queries, providing a fallback when HTTPS egress is filtered. The behavior fires automatically on npm install with no user interaction and no documented opt-in.

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

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-16330 is a malicious package: commerce-materials (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-16330/ (Markdown: https://insights.sbomify.com/MAL-2026-16330/index.md)
```

## Sources

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

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