Malicious code in tpstrrandomint (PyPI)

tpstrrandomint Updated 02 Oct 2025

Summary

26/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7629: Malicious code in tpstrrandomint (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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The tpstrrandomint package is an open-source Python package available on PyPI. It is designed to generate random integers using a specific algorithm. The package is commonly used in various Python applications and libraries.

Vulnerability Detail

A vulnerability has been identified in the tpstrrandomint package. The vulnerability originates from a malicious code injection in the package's source code. This code can execute spyware and information-stealing malware on the affected system. The malicious code was discovered by the Checkmarx security team. The impact of this vulnerability can be severe, potentially leading to unauthorized access to sensitive information and compromise of the affected system.

How To Fix

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

pip uninstall tpstrrandomint

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 known workaround for this vulnerability. It is crucial to update the package to the patched version to mitigate the risk of exploitation.

Conclusion

The tpstrrandomint package has been found to contain malicious code that can execute spyware and information-stealing malware. It is crucial to update to the latest version of the package, which has been patched to remove the malicious code. Failure to update may result in unauthorized access to sensitive information and compromise of the affected system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tpstrrandomint →

Share this vulnerability

FAQ

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

The consequences of this vulnerability can be severe. The malicious code injected into tpstrrandomint can execute spyware and information-stealing malware, leading to unauthorized access to sensitive information and compromise of the affected system.

Yes, the package maintainers have released a patched version of tpstrrandomint that removes the malicious code. It is crucial to update to the latest version to ensure the vulnerability is mitigated.

There have been reports of the malicious code in tpstrrandomint being used to execute spyware and information-stealing malware. It is essential to update the package to the patched version to protect against potential exploitation.

This vulnerability was discovered by the Checkmarx security team. They identified the malicious code injection in the tpstrrandomint package and reported it to the package maintainers.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

pip uninstall tpstrrandomint

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