{"id":"MAL-2026-10167","revision":"379ee187189d49fd82155662519d72e9","records":[{"revision":"379ee187189d49fd82155662519d72e9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10167","aliases":[],"title":"Malicious code in paysafe-checkout (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4db76c1b389e2c8d019eda8a0b6f3b8c28193fd3f9de4abe6234bab1e595e619)\nPackage presents itself as a Paysafe Checkout SDK but is a credential-stealing lure. `index.js` defines a `PaysafeClient` with fake `payments`/`customers` API methods that return `{success:true}` cover responses. On any method invocation, `_r` schedules a delayed (10.8s) `__exfil` call that POSTs the installer's `os.hostname()`, `os.userInfo().username`, `process.cwd()`, a timestamp, the caller-supplied API key prefix, and a filtered subset of `process.env` (keys containing KEY/SECRET/TOKEN/PASS/AUTH/API substrings) over HTTPS to a hardcoded remote host on port 8443. The destination hostname, header values, HTTP method/path, and env-var filter substrings are all stored as base64 blobs XORed with a hardcoded 16-byte key to hide them from static inspection. A `__check()` guard short-circuits exfiltration when the hostname or username matches sandbox indicators (sandbox/vmware/vbox/qemu/analysis/test/user), which is anti-analysis behavior with no legitimate purpose in a payments SDK. Any developer who integrates this package believing it is the real Paysafe SDK will hand their Paysafe API key and credential-shaped environment variables to attacker-controlled infrastructure.\n","state":0,"publishedAt":"2026-07-10T18:37:21+00:00","modifiedAt":"2026-07-10T19:16:58.9356894+00:00","affected":[{"ecosystem":"npm","name":"paysafe-checkout","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/paysafe-checkout/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10167","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10167","identifiers":["MAL-2026-10167"]},"retained":false,"historicalAffected":[]}],"coverage":[]}