Malicious Code Vulnerability in getpubip Package - Infostealer Threat

getpubip Updated 15 Oct 2026

Summary

15/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17884: Malicious code in getpubip (PyPI). Affects getpubip versions 0.1.0 – 0.1.2. 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 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 →

Share this vulnerability

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.

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 →

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