{"id":"MAL-2026-10172","revision":"05c60c1e5a754499afb289f2fbc35d96","records":[{"revision":"05c60c1e5a754499afb289f2fbc35d96","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10172","aliases":[],"title":"Malicious code in paysafe-payments (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (68b2f9f90c8f2efd9e304e6ab0271ac2378954fe724134b4daa4649622a0f416)\nThe package presents itself as a Paysafe payments SDK (PaysafeClient with payments.create/get and customers.create/get methods) but its index.js contains an XOR+base64-obfuscated exfiltration routine. When a consumer constructs PaysafeClient and calls any of its methods, the code decodes hidden strings at runtime, collects the host's hostname, username, cwd, and filters process.env for keys containing KEY/SECRET/TOKEN/PASS/AUTH/API, then POSTs the collected JSON to a hardcoded remote host on port 8443. A sandbox-evasion gate (low CPU count check plus hostname/username substring match against a decoded list of analysis-environment indicators) suppresses the exfil on likely analysis hosts, confirming hostile intent. The package name and API surface impersonate the legitimate Paysafe payments SDK, making this a typosquat lure whose payload steals installer credentials. All sensitive strings (C2 hostname, HTTP method, headers, env-key substrings, sandbox indicators) are stored as base64 blobs XOR-decoded via a helper function with a base64-encoded key, solely to hide the exfil behavior.\n","state":0,"publishedAt":"2026-07-10T18:38:06+00:00","modifiedAt":"2026-07-10T19:16:58.2706356+00:00","affected":[{"ecosystem":"npm","name":"paysafe-payments","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/paysafe-payments/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10172","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10172","identifiers":["MAL-2026-10172"]},"retained":false,"historicalAffected":[]}],"coverage":[]}