Malicious Code Execution in chacha-lite-encrypt Package

chacha-lite-encrypt Updated 16 Mar 2026

Summary

16/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1482: Malicious code in chacha-lite-encrypt (PyPI). Affects chacha-lite-encrypt versions 4.2.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The chacha-lite-encrypt package is a cryptographic library available on PyPI, designed to provide lightweight encryption using the ChaCha20 algorithm. It is often used in applications requiring secure data transmission. However, this package has been compromised, leading to significant security concerns for users relying on its functionality.

Vulnerability Detail

The vulnerability in the chacha-lite-encrypt package arises from malicious code embedded within the package. During the import process, the package decrypts and executes a hidden malicious executable, which is encoded and obfuscated in a JSON resource file. This vulnerability poses serious risks, including unauthorized access to sensitive information and potential system compromise. The malicious intent is evident, as it is part of a broader campaign targeting users through malware, obfuscation techniques, dependency confusion, and typosquatting.

How To Fix

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

pip uninstall chacha-lite-encrypt

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 chacha-lite-encrypt package until a secure version is confirmed. Alternatively, consider using other well-established cryptographic libraries that do not exhibit this vulnerability.

Conclusion

The chacha-lite-encrypt package has been compromised, leading to a serious vulnerability that allows malicious code execution. Users are strongly advised to update the package immediately and consider alternative libraries for encryption. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for chacha-lite-encrypt →

Share this vulnerability

FAQ

The vulnerability involves the execution of a malicious executable during the import of the package, which can compromise system security.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.

If you have installed the package, it is crucial to update it immediately to the latest patched version using the command: pip install --upgrade chacha-lite-encrypt.

Yes, consider using other reputable cryptographic libraries such as PyCryptodome or cryptography, which are widely used and maintained.

Failure to address this vulnerability can lead to unauthorized access to sensitive data, system compromise, and potential exploitation by malicious actors.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

pip uninstall chacha-lite-encrypt

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