Malicious Code Execution in prateek-yadav23 Package on PyPI

prateek-yadav23 Updated 07 Mar 2026

Summary

06/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1277: Malicious code in prateek-yadav23 (PyPI). Affects prateek-yadav23 versions 0.0.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The prateek-yadav23 package is a Python library available on the Python Package Index (PyPI). It is designed for various purposes, potentially including testing and exploration in pentesting scenarios. However, this package has been identified as containing malicious code that executes during installation, posing a significant security risk to users who install it.

Vulnerability Detail

The vulnerability originates from the package's setup.py file, which overrides the install command to execute malicious code when the package is installed. This behavior can lead to unauthorized actions on the user's system, including data theft or system compromise. The package has been categorized under PROBABLY_PENTEST due to its suspicious activity, although it does not present immediate real harm. Users should be cautious when installing packages that exhibit such behavior.

How To Fix

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

pip uninstall prateek-yadav23

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, users can monitor their environment for any unauthorized changes or activities after installation. It is advisable to use virtual environments to isolate package installations and minimize potential risks.

Conclusion

The prateek-yadav23 package on PyPI has been identified as containing malicious code that executes during installation. Users should avoid installing this package and remove it if already installed. Utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in your software.

See every vulnerability recorded for prateek-yadav23 →

Share this vulnerability

FAQ

The prateek-yadav23 package is a Python library available on PyPI, potentially used for testing and exploration in pentesting.

The vulnerability allows malicious code to execute during the installation of the package, which can compromise the user's system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If you have installed the prateek-yadav23 package, you should uninstall it immediately using 'pip uninstall prateek-yadav23'.

Always use trusted packages, check for updates, and consider using tools like Vulert to monitor for vulnerabilities in your dependencies.

How To Fix

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

pip uninstall prateek-yadav23

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