---
id: MAL-2026-6928
title: Malicious code in paysafe-payments (PyPI)
summary: Malicious code in paysafe-payments (PyPI)
severity: none
vendor: paysafe-payments
product: paysafe-payments
ecosystem: pip
affected:
  - paysafe-payments
published: '2026-07-07'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/MAL-2026-6928'
references:
  - url: 'https://bad-packages.kam193.eu/pypi/package/paysafe-payments'
  - url: >-
      https://socket.dev/blog/npm-pypi-campaign-typosquats-popular-secure-payment-apps
tags:
  - osv
  - pip
ingestedAt: '2026-07-08T18:25:55.256Z'
---

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## Source: kam193 (cc8e13806589e7fbb3dbe284624b88d6de8c030f32c04c20f8c76af059f33515)
When using a provided class, the code exfiltrates basic data and parts of sensitive env variables to a remote host.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-07-paysafe-api


Reasons (based on the campaign):


 - exfiltration-env-variables


 - dependency-confusion


 - action-hidden-in-lib-usage


 - The package contains code to detect if it is running in a sandbox environment.


 - obfuscation


## Affected packages

- `paysafe-payments`

## Remediation

Refer to the advisory for the patched release.
