Malicious Code Vulnerability in identityapi Package
Summary
MAL-2026-1141: Malicious code in identityapi (PyPI). Affects identityapi versions 3.0.0. 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 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 →
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.