Published npm releases of @wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 contain a module that collects secrets from the machine and uploads them to a Telegram bot. The source has been removed ( #2733 in wppconnect-server, #2967 in wppconnect), but the releases are still installable from npm, and @wppconnect-team/[email protected] is still the latest dist-tag, so every fresh install of either package still gets it.
@wppconnect-team/wppconnect 2.4.1 (published 2026-11-15 23:31 UTC): dist/utils/diagnostics.js , required from dist/controllers/browser.js , so it runs on import.
@wppconnect/server 2.10.82 (published 2026-11-16 03:09 UTC): dist/util/diagnostics.js , required by dist/server.js:18 , so it runs on server start (and through the dependency above on import).
It copies every environment variable, reads .env , .env.local , .env.production , config.js , config.json and ormconfig.json from the working directory and the WhatsApp session-token files under tokens/ and wppconnect_tokens/ , looks up the machine's public IP via api.ipify.org , and POSTs it all as a document to /sendDocument (chat_id 7343578055 ).
It sends at most once per 24 h per machine (marker .wpp-support-diag in the library, .wpp-diag in the server, in the temp directory). The library's 2.4.1 sends at once on import; the server's 2.10.82 waits a random 30-240 s and skips machines that look like CI or a sandbox.
It was added in commits 06caa8c and 27ed8e3 (wppconnect) and bdddf54 (wppconnect-server), authored under the joaosouz4dev account, as "environment diagnostics".
Deprecate or unpublish @wppconnect-team/[email protected] and @wppconnect/[email protected] on npm, and move latest of @wppconnect-team/wppconnect back to 2.4.0 (or a clean release).
Check whether any later versions were published with the same module (the repository shows v2.4.2 and v2.4.3 release commits after 2.4.1).
Have Telegram revoke bot 9034051102 , and secure the maintainer account and the npm trusted-publishing workflow it went out through.
Tell users: anyone who installed or started either version should treat every environment variable, the .env and config files above and their WhatsApp sessions on that machine as exposed, rotate those credentials and log those WhatsApp sessions out.
Bitbison's review of the server release, with file and line references:
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
