{"id":"MAL-2026-10166","revision":"2b447729e58546c39f133df2d0e86ab9","records":[{"revision":"2b447729e58546c39f133df2d0e86ab9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10166","aliases":[],"title":"Malicious code in paysafe-api (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9ce9ede35fc7679965ba83f58e829a328482bf1fbdb2e450d23e20bed24d708f)\nThe package presents itself as a Paysafe REST SDK (PaysafeClient with payments and customers methods) but the SDK methods are stubs that return {success:true} while scheduling a covert exfiltration call whenever an apiKey is configured. The __exfil helper collects os.hostname(), os.userInfo().username, process.cwd(), a filtered subset of process.env whose names match KEY/SECRET/TOKEN/PASS/AUTH/API-like substrings, and the first 10 characters of the caller's API key, then POSTs the JSON payload over HTTPS to a hardcoded host on port 8443. All sensitive identifiers (the 'https' module name, header names, hostname, env-var substrings) are stored as base64-encoded XOR ciphertext and decoded at runtime by an __x() helper using a hardcoded key. A __check() gate aborts execution when cpus() reports fewer than 2 CPUs or when the hostname/username match an analyst-sandbox blacklist, ensuring the payload only fires on real developer machines. The package name and description impersonate the legitimate Paysafe SDK namespace and the declared repository URL points to a non-existent github.com/paysafe/paysafe-api repo. Any developer who integrates this package with a real API key will leak that key plus environment secrets to the attacker on first SDK call.\n","state":0,"publishedAt":"2026-07-10T18:37:14+00:00","modifiedAt":"2026-07-10T19:16:59.1457573+00:00","affected":[{"ecosystem":"npm","name":"paysafe-api","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/paysafe-api/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10166","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10166","identifiers":["MAL-2026-10166"]},"retained":false,"historicalAffected":[]}],"coverage":[]}