Malicious code in tpreplaceget (PyPI)

tpreplaceget Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7556: Malicious code in tpreplaceget (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

tpreplaceget is a package available on PyPI that is used for replacing text in files. It provides a simple and convenient way to search for and replace text in various file formats. The package is widely used in Python projects for automating text replacement tasks. However, a recent vulnerability has been discovered in tpreplaceget that allows the execution of malicious code.

Vulnerability Detail

The vulnerability in tpreplaceget is a result of a malicious package published on PyPI by the EsqueleSquad group. This package contains spyware and information-stealing malware. When tpreplaceget is installed, it may inadvertently install this malicious package, leading to the execution of the spyware and theft of sensitive information. The malicious package can be identified by its SHA256 hash: 1118433ffd79bdc0b207b9aa9689b96b2d15fdbb4e4f8ab4d69b4da5407afc6b.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall tpreplaceget

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, you can manually remove the tpreplaceget package from your project by running the following command:

pip uninstall tpreplaceget

Conclusion

The tpreplaceget package on PyPI has been found to contain a malicious package that executes spyware and information-stealing malware. It is crucial to remove the tpreplaceget package from your project and take appropriate measures to mitigate the impact of the spyware. Regularly updating your security software and practicing secure coding practices can help prevent similar vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tpreplaceget →

Share this vulnerability

FAQ

The malicious package is installed when tpreplaceget is installed as a dependency in a Python project. It may be included as a transitive dependency or directly specified in the project's requirements file.

The spyware and information-stealing malware included in the malicious package can lead to unauthorized access to sensitive information, data breaches, and potential compromise of systems and networks.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock, and Vulert will analyze it for any open-source vulnerabilities, including this one.

While removing the tpreplaceget package is crucial, it is also important to scan your system for any signs of compromise and take appropriate measures to mitigate the impact. This may include running antivirus scans, monitoring network traffic, and reviewing system logs for any suspicious activity.

To prevent similar vulnerabilities, it is recommended to regularly update your project's dependencies and use tools like Vulert to monitor for any known vulnerabilities in your software stack. Additionally, practicing secure coding practices and following best practices for software development can help minimize the risk of introducing vulnerabilities.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall tpreplaceget

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback