@cexy/wonfca npm package — credential-harvesting Facebook Chat API sends logins to attacker server
Severity: critical · Patch status: no-fix-needed · Since 2026-11-20
GitHub Advisory Database (GHSA-fg8p-3m89-pwhf, published 2026-11-20) flags the npm package @cexy/wonfca, advertised as a Facebook Chat API, as malicious. Versions 1.2.1 and 1.2.2 hardcode defaultConfig.apiServer to https://minhdong.site, an author-controlled host that is not a Facebook domain. The standard email/password login flow (makeLogin → tokens → tokensViaAPI → loginViaAPI) POSTs the caller's Facebook email, password and two-factor code to that endpoint, then uses the response to populate the Facebook cookie jar with uid, accesstoken and session cookies. The author's server therefore observes and intermediates every caller's Facebook credentials and live session material. Any consumer invoking the package's default login() flow is affected. There are no patched versions; the package (~876 downloads/month) should be removed, not upgraded.
What to do
- Remove @cexy/wonfca from all projects and lockfiles immediately; do not upgrade
- Rotate Facebook account passwords and revoke all active Facebook sessions/access tokens for any account used with the package
- Audit logs and network egress for connections to minhdong.site and /api/v1/facebook/login_ios
- Check for other credentials or tokens exposed through the compromised session and enable two-factor authentication on affected accounts
- Scan build and CI environments that installed the package for further compromise
Sources
All live incidents on Threat Watch