Malicious Code Vulnerability in xenlib: Exfiltration Risk

xenlib Updated 03 Dec 2025

Summary

06/09/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191936: Malicious code in xenlib (PyPI). Affects xenlib versions 0.1.1. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The 'xenlib' package is a Python library available on PyPI, designed for various functionalities within Python applications. However, it has been identified as containing malicious code that poses a significant risk to users by exfiltrating sensitive files from their systems. This vulnerability is particularly concerning as it can operate during module imports, through native binaries, or within the setup.py script, making it stealthy and difficult to detect.

Vulnerability Detail

The vulnerability in 'xenlib' originates from a malicious campaign identified as 2025-08-xenlib, where the package is engineered to exfiltrate sensitive files from users' systems. The malicious code can execute during the importation of the module, embedded within a native binary, or included in the setup.py script. This poses severe risks, including unauthorized access to sensitive information and potential data breaches.

How To Fix

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

pip uninstall xenlib

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, users should avoid importing the 'xenlib' package in their projects and consider using alternative libraries that provide similar functionalities without the associated risks.

Conclusion

The 'xenlib' package has been identified as containing malicious code that poses a significant risk of data exfiltration. Users are advised to uninstall the package immediately and monitor for any updates or patches. Utilizing tools like Vulert can help in real-time monitoring for vulnerabilities in open-source software.

See every vulnerability recorded for xenlib →

Share this vulnerability

FAQ

The primary risk is the potential exfiltration of sensitive files from users' systems, which can lead to data breaches and unauthorized access to personal information.

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

If you have installed xenlib, you should uninstall it immediately and avoid using it until a secure version is released.

Currently, there is no patched version available. Users should monitor the package for updates and refrain from using it in the meantime.

Consider using other Python libraries that offer similar functionalities without the associated risks. Research and verify the security of any alternative before implementation.

How To Fix

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

pip uninstall xenlib

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