ynastore-baileys: malicious npm package compromises hosts and exposes secrets (GHSA-g2r6-88f3-f5xq)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-23
On 2026-11-23, the GitHub Advisory Database published GHSA-g2r6-88f3-f5xq for the npm package ynastore-baileys, flagging all versions (=0) as containing embedded malicious code (CWE-506). The advisory states that any computer with the package installed or running should be considered fully compromised, and that full control may have been handed to an outside entity. The package has about 1,402 downloads per month and no patched versions; removal is recommended, but may not eliminate all malicious software. No CVE or source code is listed. Organisations should treat installations as a supply-chain compromise, isolate affected hosts, and rotate all secrets and keys from a separate clean computer.
What to do
- Immediately treat any host that installed or ran ynastore-baileys as fully compromised; isolate it from the network and preserve evidence for forensics.
- From a different, clean computer, rotate all secrets and keys that were accessible to affected hosts, including npm tokens, cloud credentials, SSH keys, API keys, and CI/CD secrets.
- Remove the package and purge it from lockfiles, caches, and build artifacts; block ynastore-baileys in package-manager allowlists or proxies.
- Audit npm install logs, dependency trees, and CI/CD runs for ynastore-baileys; scan affected systems for persistence and additional malware.
- Notify security and incident response, and review whether any compromised credentials have been used.
Sources
All live incidents on Threat Watch