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 16 Nov 2026 · Updated 25 Nov 2026
Every version named by the advisory is in the scanner, so a lockfile check finds it directly.
- Severity
- Critical
- Type
- Compromise
- Published
- 16 Nov 2026
- Last updated
- 25 Nov 2026
- Ecosystems
- npm
- Detected by
- StepSecurity
- Source
- stepsecurity.io
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.
The full picture
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.
2 packages 4 versions
These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.
What it does if you installed it
- 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
Clean-up steps
- 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
- Rotate all environment variables and .env secrets from a clean machine
- Revoke and regenerate WhatsApp session credentials
- Compare Docker image digests rather than tags if running WPPConnect containers
- Pin to @wppconnect-team/wppconnect 2.4.0 and @wppconnect/server 2.10.81 or earlier known-clean versions
Sources
- WPPConnect Compromised: Malicious Releases Steal Secrets and WhatsApp Sessionsstepsecurity.io
- GHSA-rj96-rg6c-9hw8: Malicious code in @wppconnect-team/wppconnectgithub.com
- GHSA-96hm-h5v4-92fq: Malicious code in @wppconnect/servergithub.com
- GHSA-h4r5-vmch-5qgh: Malware in @wppconnect/servergithub.com
Check your lockfile against this and every other incident.
Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.