# WPPConnect npm packages compromised via trusted publishing workflow

> On 15-16 November 2026, malicious releases of `@wppconnect-team/wppconnect` and `@wppconnect/server` were published to npm via the project's trusted GitHub Actions workflow. The payload steals environment variables, .env files, and WhatsApp session tokens, exfiltrating to a Telegram bot.

- Published: 2026-11-16
- Last updated: 2026-11-25
- Severity: critical
- Kind: Compromise - A legitimate, already-used package, maintainer account, CI pipeline, or release tag was hijacked and a malicious version was published under a name people already depend on.
- Ecosystems: npm
- Scope: 2 packages, 4 compromised versions
- Tags: credential-theft, ci-cd-compromise, infostealer
- Detected by: StepSecurity
- Incident ID: npm-2026-11-16-wppconnect-compromise

## Affected packages (2)

Only the exact versions listed were named by the source advisories. Other versions are not implicated.

| Package | Ecosystem | Compromised versions |
|---|---|---|
| [@wppconnect-team/wppconnect](https://dependencywatch.io/package/npm/@wppconnect-team/wppconnect) | npm | 2.4.1, 2.4.3 |
| [@wppconnect/server](https://dependencywatch.io/package/npm/@wppconnect/server) | npm | 2.10.82, 2.10.83 |

## What happened

On 15 November 2026 at 23:31 UTC, npm began serving `@wppconnect-team/wppconnect` version 2.4.1. At 03:09 UTC on 16 November, `@wppconnect/server` version 2.10.82 followed. Both were published through the project's GitHub Actions trusted-publishing workflow. Subsequent versions 2.4.3 and 2.10.83 were also malicious.

The payload sends environment variables, `.env` file contents, and active WhatsApp session tokens to a Telegram bot. The project's Docker images and GitHub nightly release were also built from the compromised commits, extending exposure beyond npm.

Two unsigned commits landed on the `master` branch of wppconnect-team/wppconnect with no pull request, and the history was subsequently force-pushed. The `@wppconnect-team/wppconnect` release carried a valid provenance attestation, while the `@wppconnect/server` release did not. Standard "trusted publisher" verification accepted both releases.

StepSecurity disclosed the incident on 16 November 2026. GHSA advisories GHSA-rj96-rg6c-9hw8 and GHSA-96hm-h5v4-92fq were published on 17 November 2026 for the two affected packages.

## Impact

- Credential theft: harvests environment variables, .env files, and active session tokens
- WhatsApp session theft: steals WhatsApp session data accessible to the library
- Docker images and GitHub nightly release were also built from the payload commits
- Trusted publishing: releases carry valid provenance attestations, bypassing automated verification tools

## What to do

1. Check lockfiles and node_modules for @wppconnect-team/wppconnect 2.4.1 or 2.4.3 and @wppconnect/server 2.10.82 or 2.10.83; remove immediately
2. Rotate all environment variables and .env secrets from a clean machine
3. Revoke and regenerate WhatsApp session credentials
4. Compare Docker image digests rather than tags if running WPPConnect containers
5. Pin to @wppconnect-team/wppconnect 2.4.0 and @wppconnect/server 2.10.81 or earlier known-clean versions

## Check your own dependencies

- Check a package-lock.json against this incident: https://dependencywatch.io/check/package-lock-json

The scan runs entirely in the browser; lockfile contents are never uploaded.

## References

- [WPPConnect Compromised: Malicious Releases Steal Secrets and WhatsApp Sessions](https://www.stepsecurity.io/blog/wppconnect-compromised-malicious-releases-steal-secrets-and-whatsapp-sessions) - StepSecurity
- [GHSA-rj96-rg6c-9hw8: Malicious code in @wppconnect-team/wppconnect](https://github.com/advisories/GHSA-rj96-rg6c-9hw8) - GitHub
- [GHSA-96hm-h5v4-92fq: Malicious code in @wppconnect/server](https://github.com/advisories/GHSA-96hm-h5v4-92fq) - GitHub
- [GHSA-h4r5-vmch-5qgh: Malware in @wppconnect/server](https://github.com/advisories/GHSA-h4r5-vmch-5qgh) - GitHub

---

Canonical page: https://dependencywatch.io/incident/npm-2026-11-16-wppconnect-compromise
Markdown version: https://dependencywatch.io/incident/npm-2026-11-16-wppconnect-compromise.md
Site index for agents: https://dependencywatch.io/llms.txt
DependencyWatch.io is operated by Precursor Security (https://precursorsecurity.com).
