Malicious Code Vulnerability in getpubip Package - Infostealer Threat
Summary
MAL-2026-17884: Malicious code in getpubip (PyPI). Affects getpubip versions 0.1.0 – 0.1.2. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The getpubip package, available on PyPI, is designed to retrieve the public IP address of a user. It is commonly used in applications that require network information. However, a recent vulnerability has been discovered that allows malicious code to be executed during the import of the package, posing a significant security risk to users.
Vulnerability Detail
The vulnerability originates from obfuscated code within the getpubip package that downloads and executes an infostealer upon import. This malicious code is designed to exfiltrate sensitive browser data, compromising user privacy and security. The campaign associated with this vulnerability shares similarities with previous malicious campaigns, indicating a persistent threat in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall getpubip
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 temporary workaround, users can avoid using the getpubip package until a secure version is released. Alternatively, consider using other packages that provide similar functionality without the associated risks.
Conclusion
The discovery of malicious code within the getpubip package poses a serious threat to users, with the potential for sensitive data exfiltration. It is crucial for users to update the package to a secure version or consider alternative solutions to mitigate risks. Regular monitoring of dependencies using tools like Vulert can help maintain security in open-source projects.
See every vulnerability recorded for getpubip →
FAQ
The getpubip package is used to retrieve the public IP address of a user, commonly utilized in network-related applications.
The vulnerability allows for the downloading and execution of an infostealer, which can exfiltrate sensitive browser data.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Users are advised to check the PyPI repository for the latest version of the getpubip package to see if a patch has been released.
If immediate updates are not possible, consider using alternative packages that provide similar functionality without the security risks.