Skip to content

An editorial team and a community building with AI

← All articles

News · WPPConnect Team / GitHub Security Advisories · 2 min read

Event date: · Published:

WPPConnect npm package hit by supply chain attack, exposes WhatsApp sessions

GitHub Security Advisories confirmed on November 21, 2026 that the @wppconnect-team/wppconnect npm package was compromised through its trusted publishing pipeline, exfiltrating secrets and WhatsApp session tokens to a Telegram bot.

GitHub Security Advisories published a critical security advisory on November 21, 2026, confirming that the popular WhatsApp Web automation package @wppconnect-team/wppconnect on npm was compromised through its own trusted-publishing CI/CD pipeline. According to the GHSA-cxc9-87g6-qrj9 advisory, the malicious release exfiltrated secrets and WhatsApp session tokens to a Telegram bot.

What changed

  • Advisory GHSA-cxc9-87g6-qrj9 for the npm package @wppconnect-team/wppconnect was published on November 21, 2026
  • The flaw affects version 2.4.1 and earlier, and no patched version is currently available
  • It is classified as CWE-506 (Embedded Malicious Code)
  • The malicious release went out on November 15-16, 2026 (23:31 UTC on November 15) through the project's own trusted-publishing GitHub Actions workflow, complete with valid provenance
  • The payload swept environment variables, .env files, and active WhatsApp session tokens, sending them to a Telegram bot on module import
  • A companion advisory for @wppconnect/server 2.10.82 (GHSA-96hm-h5v4-92fq) from the same campaign was published on November 17, 2026

What it means for AI and chatbot builders

This was not a typosquatted lookalike: attackers broke into the legitimate package's own trusted-publishing pipeline, so the malicious release still carried valid provenance. The attacker also force-pushed git tags afterward to hide the payload from source review. WPPConnect underpins many WhatsApp-integrated chatbot and AI agent projects, and the advisory states that any computer where this package has been installed or run should be considered fully compromised, which means credential rotation is not optional for anyone who depends on it.

Remediation steps

WPPConnect's advisory recommends rotating all secrets from a separate, uncompromised machine, uninstalling the package, and logging out of or rotating any WhatsApp sessions tied to affected installs. Because no patched version of @wppconnect-team/wppconnect exists yet, removing the package is currently the only way to stop the exposure.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

WPPConnect npm package hit by supply chain attack, exposes WhatsApp sessions | vibecoding.inc