Malicious code in @lekzo/baileys (npm)
Description
The @lekzo/baileys npm package versions 0.0.1 and 0.0.7 declare a dependency on libsignal via a bare GitHub repository reference without a fixed commit, tag, or version. This allows the dependency to resolve to the current HEAD of that repository at install time, enabling arbitrary code execution from whoever controls that repository. Installation of this package can lead to full system compromise, requiring immediate secret and key rotation and package removal.
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 @lekzo/baileys npm package versions 0.0.1 and 0.0.7 specify the libsignal dependency as github:canove/libsignal-node without a commit SHA, tag, or semantic version. This means that on npm install, the dependency resolves to the latest commit on the GitHub repository, allowing arbitrary code to be fetched and executed without integrity verification. Control of the GitHub repository by an attacker enables execution of malicious code on any system installing this package. The package is considered fully compromised once installed, with potential full system compromise.
Potential Impact
Systems with @lekzo/baileys versions 0.0.1 or 0.0.7 installed are at risk of full compromise due to arbitrary code execution from the uncontrolled GitHub dependency. Attackers controlling the dependency repository can execute any code during installation, potentially stealing secrets and keys. The compromise is severe enough that all secrets and keys on affected systems should be rotated immediately from a separate, trusted machine. Removing the package does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Remove the affected versions of the @lekzo/baileys package immediately. Rotate all secrets and keys stored on the compromised system from a different, secure computer. Avoid installing packages that depend on GitHub repositories without fixed commit SHAs, tags, or versions to prevent arbitrary code execution. Monitor for updates or official advisories from the package maintainers regarding fixes or safer dependency declarations. Patch status is not confirmed; check vendor advisories for any official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16276
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-jv7g-wqqq-m6gm"]
- Ecosystems
- ["npm"]
Threat ID: 6acd556f2cdf04f656da89bd
Added to database: 10/12/2026, 21:47:27 UTC
Last enriched: 10/12/2026, 22:08:52 UTC
Last updated: 10/12/2026, 22:08:52 UTC
Views: 8
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.