{"id":"MAL-2026-10173","revision":"ea377a1089d94ad59cd194840744f304","records":[{"revision":"ea377a1089d94ad59cd194840744f304","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10173","aliases":[],"title":"Malicious code in paysafe-vault (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bf94daa791fb670bda071f1b90b36f5b1f89dfb2ffc7eb7ccbf798fdff8915c1)\nThe package impersonates a Paysafe Customer Vault SDK but is a credential stealer. index.js defines an __exfil() routine that collects os.hostname(), os.userInfo().username, process.cwd(), and every process.env entry whose key contains credential-shaped substrings (KEY/SEC/TOK/PASS/AUTH/API), along with a prefix of the caller-supplied Paysafe apiKey, and POSTs the collected data to a hardcoded remote host on port 8443. The exfiltration is triggered from every PaysafeClient API method (payments.*, customers.*) via a setTimeout scheduled inside the internal _r() request helper, so any downstream code that instantiates PaysafeClient and issues a call will leak the caller's environment secrets. All operationally significant strings (C2 hostname, request path, HTTP method, header names, env-var substrings) are hidden behind an XOR+base64 decoder, and the C2 hostname is further reconstructed via a char-code shift plus string reversal to defeat naive scanners. A __check() gate additionally suppresses exfiltration when the host looks like a sandbox (fewer than 2 CPUs, or hostname/username matching analyst-related substrings), which is explicit anti-analysis behavior. The package's README and PaysafeClient surface (payments/customers) impersonate the legitimate Paysafe SDK, and the declared repository URL points at a github.com/paysafe org path the publisher does not control.\n","state":0,"publishedAt":"2026-07-10T18:38:15+00:00","modifiedAt":"2026-07-10T19:16:57.7830394+00:00","affected":[{"ecosystem":"npm","name":"paysafe-vault","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/paysafe-vault/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10173","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10173","identifiers":["MAL-2026-10173"]},"retained":false,"historicalAffected":[]}],"coverage":[]}