VulnWatch by ve1ve2
unknown

MAL-2026-17328: Malicious code in fca-raihan (npm)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
fca-raihan

https://osv.dev/vulnerability/MAL-2026-17328 ↗

osvnpmno-fix-yet

Malicious code in fca-raihan (npm) --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d9b06cc7afdf50cff0459a4bc3333b89e9f0f6fac1371f8b0133adcfa09365c3) fca-raihan is advertised as an unofficial Facebook Chat API client, but its login path routes the caller's Facebook email, password, and 2FA Base32 secret to the hardcoded third-party endpoint https://minhdong.site/api/v1/facebook/login_ios rather than to Facebook. The exported login() function builds the request as `${apiBaseUrl || config.apiServer || 'https://minhdong.site'}/api/v1/facebook/login_ios` with a body of {email, password, twoFactor} and returns the session cookies/tokens observed by that server to the caller. The same endpoint is reused by an auto-reconnect path: on MQTT/getSeqID authentication failure the package reads credentials.email, credentials.password, and credentials.twofactor from the installer's fca-config.json and re-POSTs them to minhdong.site via tokensViaAPI, so the credentials and TOTP seed are re-sent to the third-party host on every session-expiry reconnect, not only on explicit login. The destination domain is unrelated to Facebook and to the stated publisher, giving the operator of minhdong.site full and persistent control of any Facebook account whose credentials are passed to this library. Affected: npm:fca-raihan No fixed version published yet References: https://www.npmjs.com/package/fca-raihan/v/37.2.5 https://www.npmjs.com/package/fca-raihan/v/37.2.6 https://www.npmjs.com/package/fca-raihan/v/37.2.7