Malicious Code Exfiltration in zscaner Package

zscaner Updated 03 Dec 2025

Summary

20/04/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191944: Malicious code in zscaner (PyPI). Affected versions are not published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The zscaner package, available on PyPI, is designed to facilitate data scanning and archiving. However, it has been identified as part of a malicious campaign that targets user data from the Telegram Desktop application. The package operates by scanning directories, filtering files, and exfiltrating sensitive information to a remote server, posing a significant risk to user privacy and data security.

Vulnerability Detail

The vulnerability originates from the intentional inclusion of malicious code within the zscaner package. When imported, zscaner automatically executes a function that initiates a data exfiltration process targeting the Telegram Desktop folder. This process involves scanning for user data, archiving it, and sending it to a remote server, which can lead to unauthorized access to sensitive information and potential identity theft.

How To Fix

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

pip uninstall zscaner

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, you can manually delete the zscaner package from your system using the command: pip uninstall zscaner. Additionally, consider using alternative packages that do not exhibit malicious behavior.

Conclusion

The zscaner package poses a significant security threat due to its malicious code designed to exfiltrate user data from the Telegram Desktop application. Users are advised to uninstall the package and monitor their systems for any unauthorized access. Regular updates and security checks are essential to maintaining a secure environment.

See every vulnerability recorded for zscaner →

Share this vulnerability

FAQ

zscaner is a Python package designed for scanning and archiving files, but it has been compromised to exfiltrate user data from the Telegram Desktop application.

The malicious code in zscaner executes automatically upon import, scanning for user data in the Telegram Desktop folder and sending it to a remote server.

The risks include unauthorized access to sensitive user data, potential identity theft, and loss of privacy.

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

If you have installed zscaner, immediately uninstall it using the command: pip uninstall zscaner, and monitor your system for any unusual activity.

How To Fix

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

pip uninstall zscaner

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