Malicious code in tpstringpep (PyPI)

tpstringpep Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7613: Malicious code in tpstringpep (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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tpstringpep is a Python package available on PyPI. It is designed to provide string formatting capabilities based on the PEP 3101 specification. This package is commonly used in Python projects to format strings in a consistent and efficient manner. However, a recent vulnerability has been discovered in tpstringpep, which allows the execution of malicious code.

Vulnerability Detail

The vulnerability in tpstringpep originates from a malicious package published by the EsqueleSquad group on PyPI. This package contains spyware and information-stealing malware. When tpstringpep is installed in a project, it can execute the malicious code, compromising the security and privacy of the system. This vulnerability poses a significant risk as it can lead to unauthorized access, data theft, and potential damage to the affected system.

How To Fix

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

pip uninstall tpstringpep

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 remove the tpstringpep package from the project.

Conclusion

The tpstringpep package has been found to contain malicious code, posing a significant security risk to systems where it is installed. It is crucial to promptly remove this package from affected projects and replace it with a trusted alternative. Regularly reviewing and updating project dependencies is essential to mitigate the risk of similar vulnerabilities. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tpstringpep →

Share this vulnerability

FAQ

tpstringpep is a Python package that provides string formatting capabilities based on the PEP 3101 specification.

The vulnerability in tpstringpep is a result of a malicious package published on PyPI by the EsqueleSquad group. When tpstringpep is installed, it can execute the malicious code contained in the package.

This vulnerability can lead to unauthorized access, data theft, and potential damage to the affected system. The malicious code can compromise the security and privacy of the system.

To fix this vulnerability, remove the tpstringpep package from the project and replace it with a trusted alternative. Regularly update and review the project's dependencies to ensure they are free from known vulnerabilities.

There is no specific workaround for this vulnerability. It is recommended to follow the steps mentioned in the 'how_to_fix' section and remove the tpstringpep package from the project.

How To Fix

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

pip uninstall tpstringpep

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