Malicious Code Detected in filespath Package - Data Exfiltration Risk
Summary
MAL-2026-701: Malicious code in filespath (PyPI). Affects filespath versions 1.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 filespath package, available on PyPI, is designed for file system manipulation. However, it has been identified as harboring malicious code that communicates with a Telegram channel, posing significant risks for data exfiltration. Users of this package may unknowingly expose sensitive information through its obfuscated functionalities.
Vulnerability Detail
The vulnerability originates from an obfuscated code within the filespath package, which disguises itself as a legitimate library for file system manipulation. This malicious code is designed to communicate with a Telegram channel, potentially leading to unauthorized data exfiltration. The obfuscation techniques used make it difficult for users to detect the malicious intent behind the package's operations, raising concerns about the security of applications that incorporate this library.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall filespath
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
Currently, there are no specific workarounds to mitigate the risks posed by the filespath package. The best course of action is to avoid using this package altogether until a secure alternative is identified.
Conclusion
The filespath package has been identified as containing malicious code that poses a risk for data exfiltration. Users are advised to uninstall the package and seek secure alternatives. Continuous monitoring for vulnerabilities is essential to maintain the security of your applications.
See every vulnerability recorded for filespath →
FAQ
filespath is a Python package designed for file system manipulation, but it has been found to contain malicious code.
The malicious code communicates with a Telegram channel, potentially allowing unauthorized access to sensitive data.
You should uninstall the filespath package immediately using pip uninstall filespath and look for secure alternatives.
No, there is currently no patched version of filespath available to address this vulnerability.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without needing to sign up.