Malicious Code Vulnerability in pipinpeace-env: Exfiltration of Environment Variables

pipinpeace-env Updated 22 Mar 2026

Summary

22/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-2026: Malicious code in pipinpeace-env (PyPI). Affects pipinpeace-env 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 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

pipinpeace-env is a Python package available on PyPI, designed for managing environment variables. It allows users to set and retrieve environment variables conveniently. However, this package has been identified with a significant vulnerability that allows it to exfiltrate sensitive environment variables during installation, posing a risk to users' data security.

Vulnerability Detail

The vulnerability originates from the package's design, which overrides the install command in setup.py to execute malicious code during installation. This code is intended to exfiltrate environment variables, potentially leading to unauthorized access to sensitive information. The package requires a URL as an installation parameter, indicating that it may be more of a research tool than a direct malicious threat. Nonetheless, it falls under the category of malicious software due to its intent to steal information.

How To Fix

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

pip uninstall pipinpeace-env

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, consider using alternative packages that provide similar functionality without the associated risks. Always verify the source and integrity of packages before installation.

Conclusion

The pipinpeace-env package poses a significant risk due to its malicious code designed to exfiltrate environment variables. Users are advised to uninstall this package and seek safer alternatives. Continuous monitoring for vulnerabilities is essential to maintain software security.

See every vulnerability recorded for pipinpeace-env →

Share this vulnerability

FAQ

pipinpeace-env is a Python package designed for managing environment variables, but it has been found to contain malicious code.

The vulnerability allows the package to exfiltrate environment variables during installation by executing malicious code embedded in the setup process.

If you have installed pipinpeace-env, you should uninstall it immediately using 'pip uninstall pipinpeace-env'.

Yes, consider using other well-reviewed packages for managing environment variables that do not have known vulnerabilities.

You can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.

How To Fix

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

pip uninstall pipinpeace-env

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