Malicious code in tpreplacelib (PyPI)

tpreplacelib Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7561: Malicious code in tpreplacelib (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

tpreplacelib is a Python package available on PyPI. It is used for performing text replacements in files. The package provides a simple and convenient way to search for specific patterns in files and replace them with desired content. However, a vulnerability has been discovered in tpreplacelib that allows the execution of malicious code.

Vulnerability Detail

The vulnerability in tpreplacelib originates from a malicious package published on PyPI by the EsqueleSquad group. This package contains spyware and information-stealing malware. When tpreplacelib is installed, it inadvertently installs the malicious package as a dependency, putting users at risk of having their sensitive information compromised. The malicious code can execute unauthorized actions on the user's system, potentially leading to data breaches or other malicious activities.

How To Fix

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

pip uninstall tpreplacelib

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

There is no specific workaround for this vulnerability. The best course of action is to follow the steps mentioned in the 'how_to_fix' section and ensure that all affected packages are removed from the system.

Conclusion

The presence of malicious code in tpreplacelib poses a significant risk to users' systems and sensitive information. It is crucial to take immediate action to remove the affected packages and mitigate any potential impact. Regularly updating software dependencies and being cautious about the sources of packages can help prevent similar vulnerabilities in the future. For additional support and guidance, reach out to DevNack.com.

See every vulnerability recorded for tpreplacelib →

Share this vulnerability

FAQ

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, providing valuable insights without requiring access to the code or installation.

Yes, you can continue using tpreplacelib after removing the malicious package. It is important to ensure that you have the latest version of tpreplacelib installed from a trusted source.

If you find the malicious package installed on your system, it is recommended to immediately remove it and scan your system for any signs of compromise. Additionally, consider changing any passwords or sensitive information that may have been exposed.

To prevent similar vulnerabilities, it is important to regularly update your software dependencies and only install packages from trusted sources. Additionally, consider using tools like Vulert to monitor for vulnerabilities in your software in real-time.

For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in addressing the vulnerability and securing your system.

How To Fix

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

pip uninstall tpreplacelib

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