Malicious Code Vulnerability in identityapi Package

identityapi Updated 02 Mar 2026

Summary

02/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1141: Malicious code in identityapi (PyPI). Affects identityapi versions 3.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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The identityapi package, available on PyPI, is designed to facilitate identity management and API interactions in Python applications. It is utilized for handling user authentication and authorization processes. However, this package has been compromised, leading to significant security concerns due to the introduction of malicious code that can exfiltrate sensitive information.

Vulnerability Detail

The vulnerability originates from a malicious code embedded within the identityapi package, specifically in version 3.0.0. This code masquerades as telemetry during import in certain environments, allowing it to exfiltrate sensitive environment variables and cloud tokens to a hardcoded location. Additionally, it initiates a job that listens for commands to execute on the victim's machine, indicating potential dependency confusion attempts. The ramifications of this vulnerability include unauthorized access to sensitive data and the ability for attackers to execute remote commands, posing a severe threat to affected systems.

How To Fix

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

pip uninstall identityapi

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, you can avoid using the identityapi package until a patched version is confirmed. Additionally, consider implementing environment variable protection measures to limit the exposure of sensitive data.

Conclusion

The identityapi package has been compromised by malicious code that poses significant security threats, including data exfiltration and remote command execution. It is essential to update the package to a patched version and implement security measures to protect sensitive information.

See every vulnerability recorded for identityapi →

Share this vulnerability

FAQ

The identityapi package is a Python library used for managing user identities and API interactions, primarily focusing on authentication and authorization.

The malicious code operates by importing disguised telemetry during specific environment setups, allowing it to exfiltrate sensitive information and execute remote commands.

The risks include unauthorized access to sensitive data, potential data breaches, and the ability for attackers to execute arbitrary commands on the affected systems.

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

If immediate updates are not possible, consider implementing security measures to protect sensitive environment variables and monitor your systems for any suspicious activity.

How To Fix

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

pip uninstall identityapi

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