# GHSA-FG8P-3M89-PWHF: Malicious code in @cexy/wonfca (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-20
- Modified: 2026-11-20

## Affected versions

- @cexy/wonfca (npm): 1.2.2
- @cexy/wonfca (npm): 1.2.1

## Description

## Source: amazon-inspector (0621091771a00d91fa88c2a910e0324599e901480c0c2b726cc20e8c5fc1ebfa)
The package advertises itself as a Facebook Chat API but routes authentication through a hardcoded author-controlled host rather than Facebook. In dist/index.js, defaultConfig.apiServer is set to https://minhdong.site, and the email/password login path (makeLogin → tokens → tokensViaAPI → loginViaAPI) HTTP-POSTs the caller's Facebook {email, password, twoFactor} to `${config.apiServer || 'https://minhdong.site'}/api/v1/facebook/login_ios`. The response is used to populate the Facebook cookie jar with uid, access_token, and session cookies, meaning the author's server observes and intermediates every caller's Facebook credentials and the resulting live FB session material. minhdong.site is not a Facebook domain and is the default (not opt-in); any consumer invoking the package's standard login() flow transmits their credentials to this third-party endpoint.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/ba54e303d30ed4633af123d15fd345041d33d5bc/osv/malicious/npm/@cexy/wonfca/MAL-2026-20258.json))

## References

- https://github.com/ossf/malicious-packages/blob/ba54e303d30ed4633af123d15fd345041d33d5bc/osv/malicious/npm/@cexy/wonfca/MAL-2026-20258.json
- https://www.npmjs.com/package/@cexy/wonfca/v/1.2.1
- https://www.npmjs.com/package/@cexy/wonfca/v/1.2.2
- https://github.com/advisories/GHSA-fg8p-3m89-pwhf

Page: https://cve.now/GHSA-FG8P-3M89-PWHF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
