Malicious code in @viertechjs/baileys (npm)
Description
The npm package @viertechjs/baileys versions 7.0.0-rc14 and 6.7.22 contain malicious code or depend on a malicious package. Installing or running these versions can fully compromise the host computer, potentially exposing all stored secrets and keys. Removal of the package does not guarantee elimination of all malicious software, as full control may have been granted to an attacker.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The npm package @viertechjs/baileys in versions 7.0.0-rc14 and 6.7.22 has been identified as containing malicious code or relying on a dependency with malicious code. According to sources including Amazon Inspector and GHSA malware advisories, any system with this package installed should be considered fully compromised. The malicious code may allow attackers to gain full control over the affected system, risking exposure of sensitive credentials and secrets. Due to the nature of the compromise, simply removing the package may not fully remediate the infection.
Potential Impact
Systems with the affected versions of @viertechjs/baileys installed are at risk of full compromise. Attackers may gain complete control over the host, leading to potential theft or misuse of secrets, keys, and other sensitive data. The compromise is severe enough that removal of the package alone is insufficient to ensure system security.
Mitigation Recommendations
Immediate removal of the affected package versions is recommended. All secrets and keys stored on the compromised system should be rotated from a separate, secure device. Because the system may be fully compromised, consider rebuilding or thoroughly cleaning the affected environment to ensure complete removal of malicious code. Monitor for any unusual activity and avoid reinstalling the affected package versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15831
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-wcqj-8x6x-4pxr"]
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4e9acd9273b49b676f6
Added to database: 09/04/2026, 14:25:45 UTC
Last enriched: 09/07/2026, 17:39:20 UTC
Last updated: 10/04/2026, 07:18:44 UTC
Views: 21
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.