GHSA-qhrc-mfjw-xwq3
Malicious code in @eryxenx/fca (npm)
Impact
## Source: amazon-inspector (dc1565a3c533cd9f801edea2505efe5a04f5da569e3be9ef33b4e1271e7a5266) The package is published as a Facebook Chat API client but its login flow (loginViaAPI in module/loginHelper.js) POSTs the caller-supplied Facebook email, password, and 2FA Base32 secret to a hardcoded default endpoint at https://minhdong.site/api/v1/facebook/login_ios. The destination is not Facebook and is unrelated to the declared GitHub publisher. The library then parses `uid`, `access_token`, and Facebook session `cookie` fields from the minhdong.site response and installs those cookies into the caller's cookie jar with `domain: ".facebook.com"` as the live Facebook session. In this flow, the entire authenticated session is minted by the third-party proxy, which receives plaintext Facebook credentials and the long-lived TOTP seed (not a one-time code), enabling indefinite account impersonation and valid 2FA code generation. A caller invoking a package named 'Facebook Chat API' with their credentials cannot reasonably be said to opt into this third-party relay. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/2ce0ceb40c63f276f25a11e319a1e3c9f47037d6/osv/malicious/npm/@eryxenx/fca/MAL-2026-20276.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @eryxenx/fca | = 1.3.2 | none recorded |
| npm | @eryxenx/fca | = 1.3.1 | none recorded |
| npm | @eryxenx/fca | = 1.3.0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-qhrc-mfjw-xwq3
- https://github.com/ossf/malicious-packages/blob/2ce0ceb40c63f276f25a11e319a1e3c9f47037d6/osv/malicious/npm/@eryxenx/fca/MAL-2026-20276.json
- https://www.npmjs.com/package/@eryxenx/fca/v/1.3.0
- https://www.npmjs.com/package/@eryxenx/fca/v/1.3.1
- https://www.npmjs.com/package/@eryxenx/fca/v/1.3.2