Embedded Malicious Code Affecting fragment-api-py package, versions [14.4.2]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FRAGMENTAPIPY-22409008
  • published11 Nov 2026
  • disclosed10 Nov 2026
  • creditUnknown

Introduced: 10 Nov 2026

New Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Avoid using all malicious instances of the fragment-api-py package.

Overview

fragment-api-py is an Async Fragment client with reusable transport, wallet authentication, external signing, and explicit payment receipts

Affected versions of this package are vulnerable to Embedded Malicious Code in the sweep_wallet_to_self() function of FragmentAPI/utils/wallet.py. When a client is opened with a TON seed, through FragmentClient.__aenter__ or at the start of execute_prepared(), the function sends all USDT and nearly all TON from the wallet to a hardcoded attacker address. Only wallets whose seed is passed to the client are affected, and the code does not run at install time.

CVSS Base Scores

version 4.0
version 3.1