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

## Overview


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

## Source: kam193 (caf46df1f47845e37bbc00d4e8f160dcf057b67aee189c7e7919f32d662f2915)
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-api`

## Remediation

Refer to the advisory for the patched release.
